40 #ifndef _RSO_INTERFACE_2_H
41 #define _RSO_INTERFACE_2_H
65 typedef unsigned int ResourceHandle;
96 virtual void SetResource( ResourceHandle resourceHandle,
const char* resourceVal ) = 0;
101 virtual const char*
GetResource( ResourceHandle resourceHandle ) = 0;
106 virtual void SetIntResource(
const char* resourceName,
long resourceVal ) = 0;
116 virtual void SetIntResource( ResourceHandle handle,
long resourceVal ) = 0;
126 virtual void SetFloatResource(
const char* resourceName,
double resourceVal ) = 0;
136 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:147
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:60
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:59
virtual ResourceHandle CreateResourceHandle(const char *resourceName)=0
Definition: rso_interface_1.h:46