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;
Definition: rso_interface_1.h:61
virtual void SetResource(const char *resourceName, const char *resourceVal)=0
Set the string value for a given named resource.
virtual const char * GetResource(const char *resourceName)=0
Get the string value for the given resource.
Definition: rso_interface_2.h:60
virtual void SetFloatResource(const char *resourceName, double resourceVal)=0
Set the value as a float for a given named resource.
virtual bool IsResourceHandleValid(ResourceHandle resourceHandle)=0
Checks if a given resource handle is valid.
virtual const char * GetResource(ResourceHandle resourceHandle)=0
Get the string value for a resource specified by handle.
virtual void SetIntResource(ResourceHandle handle, long resourceVal)=0
Set the value as an integer for a resource specified by handle.
virtual void SetFloatResource(ResourceHandle handle, double resourceVal)=0
Set the value as a float for a resource specified by handle.
virtual double GetFloatResource(ResourceHandle resourceHandle)=0
Set the value as a float for a resource specified by handle.
virtual void SetResource(ResourceHandle resourceHandle, const char *resourceVal)=0
Set the string value for a resource specified by handle.
virtual void ReleaseResourceHandle(ResourceHandle resourceHandle)=0
Disposes of a resource handle.
virtual void SetIntResource(const char *resourceName, long resourceVal)=0
Set the value as an integer for a given named resource.
virtual ~RSOInterface2()
Protected destructor so it can't be deleted directly.
Definition: rso_interface_2.h:147
virtual long GetIntResource(ResourceHandle resourceHandle)=0
Set the value as an integer 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 double GetFloatResource(const char *resourceName)=0
Get the value as a float for a given named resource.
virtual ResourceHandle CreateResourceHandle(const char *resourceName)=0
Defines the RSO interface, which provides a generic way of accessing RSOs and other content,...