This class binds a certain GameObject class to a scripting class.
More...
#include <exposed_object.hpp>
template<class S, class T>
class ExposedObject< S, T >
This class binds a certain GameObject class to a scripting class.
To bind a game object class to a scripting class, extend the GameObject class as shown in the following example:
and instantiate it in each constructor with the this pointer, like this:
- Parameters
-
§ ExposedObject()
template<class S, class T>
§ expose()
template<class S, class T>
| virtual void ExposedObject< S, T >::expose |
( |
HSQUIRRELVM |
vm, |
|
|
SQInteger |
table_idx |
|
) |
| |
|
inlineoverridevirtual |
Exposes the parent GameObject to the script Interface.
- Parameters
-
| vm | The squirrel virtual machine to expose the object on |
| table_idx | Index of the table to expose the object on |
Implements ScriptInterface.
§ unexpose()
template<class S, class T>
| virtual void ExposedObject< S, T >::unexpose |
( |
HSQUIRRELVM |
vm, |
|
|
SQInteger |
table_idx |
|
) |
| |
|
inlineoverridevirtual |
Un-exposes the parent GameObject to the script Interface.
- Parameters
-
| vm | The squirrel virtual machine to un-expose the object on |
| table_idx | Index of the table to un-expose the object on |
Implements ScriptInterface.
The documentation for this class was generated from the following file: