![]() |
Public API Reference |
![]() |
This intermediate class can be subclassed by implementors of iScript. More...
#include <csplugincommon/script/scriptcommon.h>
Public Member Functions | |
virtual csPtr< iScriptValue > | Call (const char *, const csRefArray< iScriptValue > &=csRefArray< iScriptValue >())=0 |
Calls a subroutine in the script. | |
virtual csPtr< iScriptValue > | Retrieve (const char *)=0 |
Gets the value of a variable in the script interpreter. | |
virtual bool | Store (const char *name, iScriptValue *)=0 |
Sets a variable in the script interpreter. |
This intermediate class can be subclassed by implementors of iScript.
It implements the deprecated methods in iScript 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 90 of file scriptcommon.h.
virtual csPtr<iScriptValue> csScriptCommon::Call | ( | const char * | name, |
const csRefArray< iScriptValue > & | args = csRefArray< iScriptValue >() |
||
) | [pure virtual] |
Calls a subroutine in the script.
name | The name of the subroutine. |
args | An optional array of arguments to pass to the subroutine. |
Implements iScript.
virtual csPtr<iScriptValue> csScriptCommon::Retrieve | ( | const char * | name | ) | [pure virtual] |
Gets the value of a variable in the script interpreter.
name | The name of the variable to retrieve. |
Implements iScript.
virtual bool csScriptCommon::Store | ( | const char * | name, |
iScriptValue * | value | ||
) | [pure virtual] |
Sets a variable in the script interpreter.
name | The name of the variable to set. |
value | The value to set the variable to. |
Implements iScript.