![]() |
Public API Reference |
![]() |
This intermediate class can be subclassed by implementors of iScriptObject. More...
#include <csplugincommon/script/scriptcommon.h>
Public Member Functions | |
virtual csPtr< iScriptValue > | Call (const char *, const csRefArray< iScriptValue > &=csRefArray< iScriptValue >())=0 |
Calls a method in the object. | |
virtual csPtr< iScriptValue > | Get (const char *)=0 |
Gets the value of a property in the script object. | |
virtual bool | IsType (const char *t) const |
Deprecated version of IsA(). | |
virtual bool | Set (const char *name, iScriptValue *)=0 |
Sets the value of a property in the script object. | |
virtual bool | SetPointer (void *) |
If the object is from the cspace module, this will allow you to change the reference to point to another object of the same class. |
This intermediate class can be subclassed by implementors of iScriptObject.
It implements the deprecated methods in iScriptObject by forwarding calls to the new methods which have replaced them.
When the deprecated methods are removed, this will no longer be neccessary.
Definition at line 38 of file scriptcommon.h.
virtual csPtr<iScriptValue> csScriptObjectCommon::Call | ( | const char * | name, |
const csRefArray< iScriptValue > & | args = csRefArray< iScriptValue >() |
||
) | [pure virtual] |
Calls a method in the object.
name | The name of the method to call. |
args | An optional array of arguments to pass to the method. |
Implements iScriptObject.
virtual csPtr<iScriptValue> csScriptObjectCommon::Get | ( | const char * | name | ) | [pure virtual] |
Gets the value of a property in the script object.
name | The name of the property. |
Implements iScriptObject.
virtual bool csScriptObjectCommon::IsType | ( | const char * | ) | const [inline, virtual] |
Deprecated version of IsA().
Implements iScriptObject.
Definition at line 51 of file scriptcommon.h.
virtual bool csScriptObjectCommon::Set | ( | const char * | name, |
iScriptValue * | value | ||
) | [pure virtual] |
Sets the value of a property in the script object.
name | The name of the property. |
value | The value that the property will be set to. |
Implements iScriptObject.
virtual bool csScriptObjectCommon::SetPointer | ( | void * | ) | [inline, virtual] |
If the object is from the cspace module, this will allow you to change the reference to point to another object of the same class.
NOTE: This is not guaranteed to work, is deprecated, and will be removed!
Implements iScriptObject.
Definition at line 53 of file scriptcommon.h.