VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtBindableLuaComponentInterface Class Referenceabstract

Multiply inherit from this class to add some convenience lua functions.

Inheritance diagram for DtBindableLuaComponentInterface:
Inheritance graph
[legend]

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

DtLocalObjectmyBoundEntity
 
lua_State * myBoundForState
 
DtString myType
 

Constructor & Destructor Documentation

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 DtBindableLuaComponentInterface::~DtBindableLuaComponentInterface ( )
virtual

DTOR.

Member Function Documentation

virtual void DtBindableLuaComponentInterface::bindLuaFunctions ( lua_State *  )
pure virtual
virtual void DtBindableLuaComponentInterface::bindLuaGlobals ( lua_State *  )
pure virtual
virtual void DtBindableLuaComponentInterface::bind ( DtLocalObject ,
const DtString scriptId,
lua_State *   
)
virtual

Starts the binding process.

virtual DtString DtBindableLuaComponentInterface::bindableName ( const DtString ) const
virtual

Returns a name suitable for binding. Replaces spaces and - with _.

virtual bool DtBindableLuaComponentInterface::shouldBind ( lua_State *  ) const
protectedpure virtual

Member Data Documentation

DtLocalObject* DtBindableLuaComponentInterface::myBoundEntity
protected
lua_State* DtBindableLuaComponentInterface::myBoundForState
protected
DtString DtBindableLuaComponentInterface::myType
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)