![]() |
VR-Forces Developer's Guide
|
This class will be used to bind Lua functions to allow for control of the swinging part actuator.

Public Member Functions | |
| DtBindableLuaComponentExtension (DtBindableLuaComponentInterface *) | |
| virtual | ~DtBindableLuaComponentExtension () override |
| virtual void | cleanup (lua_State *) override |
| virtual void | clearBackingPointer (void *usr) override |
Public Member Functions inherited from DtLuaScriptInterfaceExtension | |
| virtual | ~DtLuaScriptInterfaceExtension () |
Static Public Member Functions | |
| static DtLuaScriptInterfaceExtension * | create (void *usr) |
Protected Member Functions | |
| virtual void | bindLuaFunctions (DtLocalObject *entity, const DtString &scriptId, lua_State *L) override |
Protected Attributes | |
| DtBindableLuaComponentInterface * | myExtension |
Additional Inherited Members | |
Public Types inherited from DtLuaScriptInterfaceExtension | |
| typedef DtLuaScriptInterfaceExtension *(* | CreatorFcn )(void *usr) |
| typedef std::pair < DtLuaScriptInterfaceExtension::CreatorFcn, void * > | CreatorUserPair |
| DtBindableLuaComponentExtension::DtBindableLuaComponentExtension | ( | DtBindableLuaComponentInterface * | ) |
CTOR.
|
overridevirtual |
DTOR.
|
static |
Static creator function. user pointer is the pointer to the DtTranslatablePartActuator that will used to bind the lua functions.
|
overridevirtual |
Called to cleanup any state. The most important thing would be to clean up any global space, for example if you have added a global space as:
luabind::globals(L)["myModule"] = this;
You will need to, in this cleanup call, do:
luabind::globals(L)["myModule"] = luabind::object();
Implements DtLuaScriptInterfaceExtension.
|
overridevirtual |
Called when the object that backs this extension is about to be destroyed. Implementations should null out any raw pointer they hold to usr. The default implementation is a no-op.
Reimplemented from DtLuaScriptInterfaceExtension.
|
overrideprotectedvirtual |
Binds method for this class to the lua state. This simple method will send an object console message to the entity that implements this task. Calls bind method in DtSwingingPartActuator class.
Implements DtLuaScriptInterfaceExtension.
|
protected |