![]() |
VR-Forces 4.5 Class Documentation
|
Multiply inherit from this class to add some convenience lua functions. More...

Public Member Functions | |
| DtBindableLuaComponentInterface (const DtVrfObject *entity, const DtString &componentName, const DtString &componentType) | |
| CTOR. | |
| virtual | ~DtBindableLuaComponentInterface () |
| DTOR. | |
| virtual void | bindLuaFunctions (lua_State *)=0 |
| Override to bind lua functions. | |
| virtual void | bindLuaGlobals (lua_State *)=0 |
| Override to bind lua globals. | |
| virtual void | bind (DtVrfObject *, const DtString &scriptId, lua_State *) |
| Starts the binding process. | |
| virtual DtString | bindableName (const DtString &) const |
| Returns a name suitable for binding. Replaces spaces and - with _. | |
Protected Member Functions | |
| virtual bool | shouldBind (lua_State *) const =0 |
Protected Attributes | |
| const DtVrfObject * | myBoundEntity |
| lua_State * | myBoundForState |
| DtString | myType |
Multiply inherit from this class to add some convenience lua functions.
| DtBindableLuaComponentInterface::DtBindableLuaComponentInterface | ( | const DtVrfObject * | 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 DtTranslatablePartActuator, DtSensorGimbalController, DtSimpleProximitySensor, DtSensorGimbalActuator, and DtSwingingPartActuator.
|
pure virtual |
Override to bind lua globals.
Implemented in DtTranslatablePartActuator, DtSensorGimbalController, DtSimpleProximitySensor, DtSensorGimbalActuator, and DtSwingingPartActuator.
|
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< DtSensorGimbalController >, and DtBindableLuaComponent< DtTranslatablePartActuator >.
|
protected |
|
protected |
|
protected |