VR-Forces 4.7 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

namespace  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.
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.
std::list< DtScriptVrfObjectluaScriptInterface::luaGetContactsWithFilter (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &typeFilters, bool observedOnly)
 This function supports the script API.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)