![]() |
VR-Forces Development_Version Class Documentation
|
Subclass this class in order to provide extensions to the LUA interface. More...

Public Types | |
| typedef DtLuaScriptInterfaceExtension *(* | CreatorFcn )(void *usr) |
| Prototype for DtLuaScriptInterfaceExtension creator function. | |
| typedef std::pair < DtLuaScriptInterfaceExtension::CreatorFcn, void * > | CreatorUserPair |
Public Member Functions | |
| virtual | ~DtLuaScriptInterfaceExtension () |
| virtual void | bindLuaFunctions (DtVrfObject *, const DtString &scriptId, lua_State *)=0 |
| Bind any methods that are part of this class to the lua_state. | |
| virtual void | cleanup () |
| Called to cleanup any state. | |
Subclass this class in order to provide extensions to the LUA interface.
In order to be considered a valid extension it must implement bindLuaFunctions() and have a static creator function. This class will be created for each script implementation and methods bound to the lua_state provided. Use the DtLuaScriptInterfaceImpl::addExtension method to add a new extension for all lua task environments. Use DtVrfObject::addScriptExtension() to add an extension for a specific entity only.
| typedef DtLuaScriptInterfaceExtension*(* DtLuaScriptInterfaceExtension::CreatorFcn)(void *usr) |
Prototype for DtLuaScriptInterfaceExtension creator function.
| typedef std::pair<DtLuaScriptInterfaceExtension::CreatorFcn, void*> DtLuaScriptInterfaceExtension::CreatorUserPair |
|
inlinevirtual |
|
pure virtual |
Bind any methods that are part of this class to the lua_state.
The object supplied is the entity that is used for this bound script
Implemented in DtBindableLuaComponentExtension.
|
inlinevirtual |
Called to cleanup any state.