![]() |
VR-Forces Developer's Guide
|
Multiply inherit from this class to add some convenience lua functions.

Public Member Functions | |
| DtBindableLuaComponentInterface (DtLocalObject *entity, const DtString &componentName, const DtString &componentType) | |
| virtual | ~DtBindableLuaComponentInterface () |
| virtual void | bindLuaFunctions (lua_State *)=0 |
| virtual void | bindLuaGlobals (lua_State *)=0 |
| virtual void | bind (DtLocalObject *, const DtString &scriptId, lua_State *) |
| virtual DtString | bindableName (const DtString &) const |
Protected Member Functions | |
| virtual bool | shouldBind (lua_State *) const =0 |
Protected Attributes | |
| DtLocalObject * | myBoundEntity |
| lua_State * | myBoundForState |
| DtString | myType |
| DtBindableLuaComponentInterface::DtBindableLuaComponentInterface | ( | DtLocalObject * | entity, |
| const DtString & | componentName, | ||
| const DtString & | componentType | ||
| ) |
CTOR. The name will be the name to ingnore when saving and the class name to be referenced in scripts.
|
virtual |
DTOR.
|
pure virtual |
Override to bind lua functions.
Implemented in DtDiGuyController, DtSensorGimbalController, DtTranslatablePartActuator, DtAirRefuelSupplierController, DtSwingingPartActuator, DtExtendablePartActuator, DtSimpleProximitySensor, and DtSensorGimbalActuator.
|
pure virtual |
Override to bind lua globals.
Implemented in DtDiGuyController, DtSensorGimbalController, DtTranslatablePartActuator, DtAirRefuelSupplierController, DtSwingingPartActuator, DtExtendablePartActuator, DtSimpleProximitySensor, and DtSensorGimbalActuator.
|
virtual |
Starts the binding process.
Returns a name suitable for binding. Replaces spaces and - with _.
|
protectedpure virtual |
Implemented in DtBindableLuaComponent< T >, DtBindableLuaComponent< DtSensorGimbalActuator >, DtBindableLuaComponent< DtSwingingPartActuator >, DtBindableLuaComponent< DtSimpleProximitySensor >, DtBindableLuaComponent< DtAirRefuelSupplierController >, DtBindableLuaComponent< DtDiGuyController >, DtBindableLuaComponent< DtExtendablePartActuator >, DtBindableLuaComponent< DtSensorGimbalController >, and DtBindableLuaComponent< DtTranslatablePartActuator >.
|
protected |
|
protected |
|
protected |