15 #include <luabind/detail/make_instance.hpp>
16 #include <luabind/detail/class_rep.hpp>
32 virtual void bindLuaFunctions(lua_State*) = 0;
35 virtual void bindLuaGlobals(lua_State*) = 0;
44 virtual bool shouldBind(lua_State*)
const = 0;
67 std::pair<luabind::detail::class_id, void*> dynamic = luabind::detail::get_dynamic_class(L,
68 luabind::get_pointer(dynamic_cast<const T*>(
this)));
70 luabind::detail::class_rep* cls = luabind::detail::get_pointee_class(L, dynamic_cast<const T*>(
this), dynamic.first);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtBindableLuaComponent(const DtVrfObject *entity, const DtString &componentName, const DtString &componentType)
Definition: bindableLuaComponent.h:56
DtString myType
Definition: bindableLuaComponent.h:49
DtBindableLuaComponentInterface * myExtension
Definition: bindableLuaComponent.h:99
Definition: bindableLuaComponent.h:53
const DtVrfObject * myBoundEntity
Definition: bindableLuaComponent.h:47
binderNoArgs< _Fn > bind(const _Fn &_Func, const _Ty &_Left)
Definition: DtSTLUtilities.h:76
virtual ~DtBindableLuaComponent()
Definition: bindableLuaComponent.h:61
Multiply inherit from this class to add some convenience lua functions.
Definition: bindableLuaComponent.h:21
This class will be used to bind Lua functions to allow for control of the swinging part actuator...
Definition: bindableLuaComponent.h:78
Subclass this class in order to provide extensions to the LUA interface.
Definition: luaScriptInterfaceExtension.h:28
bool shouldBind(lua_State *L) const
Definition: bindableLuaComponent.h:65
lua_State * myBoundForState
Definition: bindableLuaComponent.h:48
virtual void bindLuaFunctions(DtVrfObject *, const DtString &scriptId, lua_State *)=0
Bind any methods that are part of this class to the lua_state.