40 #ifndef _RSO_INTERFACE_2_H
41 #define _RSO_INTERFACE_2_H
68 typedef unsigned int ResourceHandle;
99 virtual void SetResource(ResourceHandle resourceHandle,
const char *resourceVal) = 0;
104 virtual const char *
GetResource(ResourceHandle resourceHandle) = 0;
109 virtual void SetIntResource(
const char *resourceName,
long resourceVal) = 0;
119 virtual void SetIntResource(ResourceHandle handle,
long resourceVal) = 0;
129 virtual void SetFloatResource(
const char *resourceName,
double resourceVal) = 0;
139 virtual void SetFloatResource(ResourceHandle handle,
double resourceVal) = 0;
virtual void ReleaseResourceHandle(ResourceHandle resourceHandle)=0
Disposes of a resource handle.
virtual void SetResource(const char *resourceName, const char *resourceVal)=0
Set the string value for a given named resource.
virtual ~RSOInterface2()
Protected destructor so it can't be deleted directly.
Definition: rso_interface_2.h:150
virtual void SetIntResource(const char *resourceName, long resourceVal)=0
Set the value as an integer for a given named resource.
virtual const char * GetResource(const char *resourceName)=0
Get the string value for the given resource.
Defines the RSO interface, which provides a generic way of accessing RSOs and other content...
virtual const char * GetResource(ResourceHandle resourceHandle)=0
Get the string value for a resource specified by handle.
virtual long GetIntResource(const char *resourceName)=0
Get the value as an integer for a given named resource.
virtual void SetResource(ResourceHandle resourceHandle, const char *resourceVal)=0
Set the string value for a resource specified by handle.
Definition: rso_interface_1.h:63
virtual bool IsResourceHandleValid(ResourceHandle resourceHandle)=0
Checks if a given resource handle is valid.
virtual void SetFloatResource(const char *resourceName, double resourceVal)=0
Set the value as a float for a given named resource.
virtual double GetFloatResource(const char *resourceName)=0
Get the value as a float for a given named resource.
Definition: rso_interface_2.h:62
virtual ResourceHandle CreateResourceHandle(const char *resourceName)=0
Definition: rso_interface_1.h:46