VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions | Variables
luaScriptInterfaceImpl.h File Reference

Go to the source code of this file.

Classes

class  DtLuaScriptInterfaceImpl
 
class  DtLuaScriptInterfaceImpl::DtLuaScriptFunctionReference
 
struct  DtLuaScriptInterfaceImpl::LuaExtension
 

Namespaces

 makVrfEvents
 
 luaScriptInterface
 

Typedefs

typedef luabind::object(* ReaderWriterToLuaTableFcn )(lua_State *LS, const DtReaderWriter *rwString, const DtSimulationServices *mgr, const DtString &parameterType)
 
typedef luabind::object(* luaScriptInterface::rwToLuaBindObjectFcn )(const 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 DtScriptOwnshipObject &thisEntity, const DtScriptVrfObject &otherEntity)
 
luabind::object luaScriptInterface::luaGetSubordinateFormation (lua_State *L, const DtScriptOwnshipObject &entity, DtScriptVrfObject &leadSubordinate)
 
std::list< DtVectorOffset3DluaScriptInterface::luaGetOptionFormationPositions (lua_State *L, const DtScriptVrfObject &unit, const std::string &formationName, luabind::object const &options, int *leaderIndex)
 
std::list< DtVectorOffset3DluaScriptInterface::luaGetFormationPositions (lua_State *L, const DtScriptVrfObject &unit, const std::string &formationName, int *leaderIndex)
 
luabind::object luaScriptInterface::luaGetParameterSubordinateFunctions (lua_State *L, const DtScriptVrfObject &entity)
 
luabind::object luaScriptInterface::luaGetSubordinateFunctions (lua_State *L, const DtScriptVrfObject &entity)
 
bool luaScriptInterface::luaSetSubordinateFunctions (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &subsAndFunctions)
 
std::string luaScriptInterface::luaGetSubordinateFunction (lua_State *L, const DtScriptVrfObject &entity, const DtScriptVrfObject &subEntity)
 
bool luaScriptInterface::luaSetSubordinateFunction (lua_State *L, const DtScriptVrfObject &entity, const DtScriptVrfObject &subEntity, const std::string &subFunction)
 
luabind::object luaScriptInterface::luaGetTargetPriorityList (lua_State *L, const DtScriptOwnshipObject &thisEntity)
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetContactsWithFilter (lua_State *L, const DtScriptOwnshipObject &entity, luabind::object const &typeFilters, bool observedOnly)
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetContactsWithFilterAliveOnly (lua_State *L, const DtScriptOwnshipObject &entity, luabind::object const &typeFilters, bool observedOnly, bool aliveOnly)
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetHostileContactsWithFilterAliveOnly (lua_State *L, const DtScriptOwnshipObject &entity, luabind::object const &typeFilters, bool observedOnly, bool aliveOnly)
 
std::list< DtScriptVrfObjectluaScriptInterface::luaGetContacts (lua_State *L, const DtScriptOwnshipObject &entity, luabind::object const &typeFilters, luabind::object const &flags)
 
bool luaScriptInterface::luaSetStateProperty (lua_State *L, DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &prop)
 
bool luaScriptInterface::luaSetOrAddStateProperty (lua_State *L, DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &prop, bool addIfNotFound)
 
bool luaScriptInterface::luaSetStatePropertyListItem (lua_State *L, DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &keyValues, luabind::object const &itemValue)
 
bool luaScriptInterface::luaSetStatePropertyListItemByIndex (lua_State *L, DtScriptOwnshipObject &entity, const std::string &propertyName, int index, luabind::object const &itemValue)
 
bool luaScriptInterface::luaSetStatePropertyMapItem (lua_State *L, DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &keyValue, luabind::object const &itemValue)
 
luabind::object luaScriptInterface::luaGetStateProperty (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName)
 
luabind::object luaScriptInterface::luaGetStateOwnshipProperty (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName)
 
luabind::object luaScriptInterface::luaGetStatePropertyListItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValues, int &index)
 
luabind::object luaScriptInterface::luaGetStateOwnshipPropertyListItem (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &keyValues, int &index)
 
luabind::object luaScriptInterface::luaGetStatePropertyListItemByIndex (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, int index)
 
luabind::object luaScriptInterface::luaGetStateOwnshipPropertyListItemByIndex (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName, int index)
 
luabind::object luaScriptInterface::luaGetStatePropertyMapItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValue)
 
luabind::object luaScriptInterface::luaGetStateOwnshipPropertyMapItem (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &keyValue)
 
luabind::object luaScriptInterface::luaGetParamProperty (lua_State *L, const DtScriptVrfObject &entity, std::string const &paramName)
 
luabind::object luaScriptInterface::luaGetOwnshipParamProperty (lua_State *L, const DtScriptOwnshipObject &entity, std::string const &paramName)
 
luabind::object luaScriptInterface::luaGetParameterPropertyListItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValues, int &index)
 
luabind::object luaScriptInterface::luaGetOwnshipParameterPropertyListItem (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &keyValues, int &index)
 
luabind::object luaScriptInterface::luaGetParameterPropertyListItemByIndex (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, int index)
 
luabind::object luaScriptInterface::luaGetOwnshipParameterPropertyListItemByIndex (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName, int index)
 
luabind::object luaScriptInterface::luaGetParameterPropertyMapItem (lua_State *L, const DtScriptVrfObject &entity, const std::string &propertyName, luabind::object const &keyValue)
 
luabind::object luaScriptInterface::luaGetOwnshipParameterPropertyMapItem (lua_State *L, const DtScriptOwnshipObject &entity, const std::string &propertyName, luabind::object const &keyValue)
 
bool luaScriptInterface::luaSetSystemAttribute (DtScriptComponentSystem &system, const std::string &attributeName, const luabind::object &value, lua_State *L)
 
static const std::map
< DtString,
rwToLuaBindObjectFcn > & 
luaScriptInterface::rwToLuaBindObjectMap ()
 

Variables

const char ContactObservedOnly [] = "observedOnly"
 
const char ContactAliveOnly [] = "aliveOnly"
 
const char ContactHostileOnly [] = "hostileOnly"
 
const char ContactCurrentlyDetectedOnly [] = "currentlyDetectedOnly"
 

Typedef Documentation

typedef luabind::object(* ReaderWriterToLuaTableFcn)(lua_State *LS, const DtReaderWriter *rwString, const DtSimulationServices *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  )

Variable Documentation

const char ContactObservedOnly[] = "observedOnly"
const char ContactAliveOnly[] = "aliveOnly"
const char ContactHostileOnly[] = "hostileOnly"
const char ContactCurrentlyDetectedOnly[] = "currentlyDetectedOnly"

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)