VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions
luaScriptInterfaceImpl.h File Reference

Go to the source code of this file.

Classes

class  DtLuaScriptInterfaceImpl
 
class  DtLuaScriptInterfaceImpl::DtLuaScriptFunctionReference
 Override of DtScriptInterface::DtScriptFunctionReference that holds a function reference by function name, represented as a string. More...
 
struct  DtLuaScriptInterfaceImpl::LuaExtension
 

Namespaces

 luaScriptInterface
 !
 

Typedefs

typedef luabind::object(* ReaderWriterToLuaTableFcn )(lua_State *LS, const DtReaderWriter *rwString, DtVrfObjectManager *mgr, const DtString &parameterType)
 When adding decoder functions to turn reader/writer into lua tables, the format must be of the following prototype. More...
 
typedef luabind::object(* luaScriptInterface::rwToLuaBindObjectFcn )(DtReaderWriter *rw, lua_State *L)
 

Functions

 DT_DEFINE_OBJECT_DEBUGGER_NAME (DtLuaScriptInterfaceImpl)
 
luabind::object luaScriptInterface::luaGetEntityParam (lua_State *L, const DtScriptVrfObject &entity, std::string const &paramName)
 
luabind::object luaScriptInterface::luaGetSystemAttribute (const DtScriptComponentSystem &system, const std::string &attributeName, bool *error, lua_State *L)
 
luabind::object luaScriptInterface::luaGetContactInfo (lua_State *L, const DtScriptVrfObject &thisEntity, const DtScriptVrfObject &otherEntity)
 Gets the perceived contact info that this entity has for another entity. More...
 
luabind::object luaScriptInterface::luaGetParameterSubordinateFunctions (lua_State *L, const DtScriptVrfObject &entity)
 Gets a table of entity type and subordinate function handle pairs {{ENTITY_TYPE_STRING, FUNCTION_HANDLE_STRING}}. More...
 
luabind::object luaScriptInterface::luaGetSubordinateFunctions (lua_State *L, const DtScriptVrfObject &entity)
 Return a table of {{"subordinate" = DtScriptVrfObject, "function" = string}}. More...
 
bool luaScriptInterface::luaSetSubordinateFunctions (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &subsAndFunctions)
 Given a table of {{"subordinate" = DtScriptVrfObject, "function" = string}} Set the state property 'SubordinateFunctions' Return true. More...
 
std::string luaScriptInterface::luaGetSubordinateFunction (lua_State *L, const DtScriptVrfObject &entity, const DtScriptVrfObject &subEntity)
 Return a string representing subordinate function for indicated subordinate. More...
 
bool luaScriptInterface::luaSetSubordinateFunction (lua_State *L, const DtScriptVrfObject &entity, const DtScriptVrfObject &subEntity, const std::string &subFunction)
 Given a table of {{"subordinate" = DtScriptVrfObject, "function" = string}} Set the state property 'SubordinateFunctions' Return true. More...
 
luabind::object luaScriptInterface::luaGetTargetPriorityList (lua_State *L, const DtScriptVrfObject &thisEntity)
 Gets the target priority list that this entity has. More...
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetContactsWithFilter (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &typeFilters, bool observedOnly)
 This function supports the script API. More...
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetContactsWithFilterAliveOnly (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &typeFilters, bool observedOnly, bool aliveOnly)
 Same as luaGetContactsWithFiler but adds a boolean flag to indicate that only non-destroyed entities should be returned. More...
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetHostileContactsWithFilterAliveOnly (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &typeFilters, bool observedOnly, bool aliveOnly)
 This function is the same as luaGetContactsWithFilterAliveOnly, but it returns only hostile contacts. More...
 
bool luaScriptInterface::luaSetStateProperty (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &prop)
 Sets the specified state property with the given value. More...
 
bool luaScriptInterface::luaSetOrAddStateProperty (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &prop, bool addIfNotFound)
 Sets the specified state property with the given value. More...
 
bool luaScriptInterface::luaSetStatePropertyListItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValues, luabind::object const &itemValue)
 Sets a single item in a list state property to the given value. More...
 
bool luaScriptInterface::luaSetStatePropertyListItemByIndex (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, int index, luabind::object const &itemValue)
 Finds the item in the list at the specified index and updates it to the new value. More...
 
bool luaScriptInterface::luaSetStatePropertyMapItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValue, luabind::object const &itemValue)
 Sets a single item in a map state property to the given value. More...
 
luabind::object luaScriptInterface::luaGetStateProperty (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName)
 Returns an object containing the value of the requested state property. More...
 
luabind::object luaScriptInterface::luaGetStatePropertyListItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValues, int &index)
 Returns an object containing the value of the of an item in the given state property. More...
 
luabind::object luaScriptInterface::luaGetStatePropertyListItemByIndex (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, int index)
 Returns an object containing the value of the of an item in the given state property. More...
 
luabind::object luaScriptInterface::luaGetStatePropertyMapItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValue)
 Returns an object containing the value of the of an item in the given state property. More...
 
luabind::object luaScriptInterface::luaGetParamProperty (lua_State *L, const DtScriptVrfObject &entity, std::string const &paramName)
 Returns an object containing the value of the requested parameter property. More...
 
luabind::object luaScriptInterface::luaGetParameterPropertyListItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValues, int &index)
 Returns an object containing the value of the of an item in the given parameter property. More...
 
luabind::object luaScriptInterface::luaGetParameterPropertyListItemByIndex (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, int index)
 Returns an object containing the value of the of an item in the given parameter property. More...
 
luabind::object luaScriptInterface::luaGetParameterPropertyMapItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValue)
 Returns an object containing the value of the of an item in the given parameter property. More...
 
bool luaScriptInterface::luaSetSystemAttribute (DtScriptComponentSystem &system, const std::string &attributeName, const luabind::object &value, lua_State *L)
 
static const std::map
< DtString,
rwToLuaBindObjectFcn > & 
luaScriptInterface::rwToLuaBindObjectMap ()
 

Typedef Documentation

typedef luabind::object(* ReaderWriterToLuaTableFcn)(lua_State *LS, const DtReaderWriter *rwString, DtVrfObjectManager *mgr, const DtString &parameterType)

When adding decoder functions to turn reader/writer into lua tables, the format must be of the following prototype.

Note that you will only need to add one of these if there is an intrinsic type that is not covered in your reader/writer object (int, real, string, boolean, etc) or you want a different table format than a table that mimics the reader/writer structure

Function Documentation

DT_DEFINE_OBJECT_DEBUGGER_NAME ( DtLuaScriptInterfaceImpl  )

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)