![]() |
VR-Forces 4.8 Class Documentation
|
! More...
Typedefs | |
| typedef luabind::object(* | rwToLuaBindObjectFcn )(DtReaderWriter *rw, lua_State *L) |
Functions | |
| luabind::object | luaGetEntityParam (lua_State *L, const DtScriptVrfObject &entity, std::string const ¶mName) |
| luabind::object | luaGetSystemAttribute (const DtScriptComponentSystem &system, const std::string &attributeName, bool *error, lua_State *L) |
| luabind::object | 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 | luaGetTargetPriorityList (lua_State *L, const DtScriptVrfObject &thisEntity) |
| Gets the target priority list that this entity has. More... | |
| std::list< DtScriptVrfObject > | luaGetContactsWithFilter (lua_State *L, const DtScriptVrfObject &entity, luabind::object const &typeFilters, bool observedOnly) |
| This function supports the script API. More... | |
| bool | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | luaGetParamProperty (lua_State *L, const DtScriptVrfObject &entity, std::string const ¶mName) |
| Returns an object containing the value of the requested parameter property. More... | |
| luabind::object | 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 | 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 | 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 | luaSetSystemAttribute (DtScriptComponentSystem &system, const std::string &attributeName, const luabind::object &value, lua_State *L) |
| static const std::map < DtString, rwToLuaBindObjectFcn > & | rwToLuaBindObjectMap () |
!
Other functions that are Lua-specific, so not in the VRF class declarations, but do not belong in the interface impl class either. They are used for methods for geometry objects, etc.
| typedef luabind::object(* luaScriptInterface::rwToLuaBindObjectFcn)(DtReaderWriter *rw, lua_State *L) |
| 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.
| luabind::object luaScriptInterface::luaGetTargetPriorityList | ( | lua_State * | L, |
| const DtScriptVrfObject & | thisEntity | ||
| ) |
Gets the target priority list that this entity has.
| std::list<DtScriptVrfObject> luaScriptInterface::luaGetContactsWithFilter | ( | lua_State * | L, |
| const DtScriptVrfObject & | entity, | ||
| luabind::object const & | typeFilters, | ||
| bool | observedOnly | ||
| ) |
This function supports the script API.
It gets the list of contacts matching the given filter and returns it. The Lua API function requires this list be returned in a table, so there is a wrapper function for it in the vrfLua module.
| 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.
If the property does not exist or the format of the data is incorrect, returns false.
| 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.
If not found and addIfNotFound is true, then an attempt will be made to add the new property. If the format of the data is incorrect, returns false.
| 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.
First looks in the list to see if any existing items match the specified key fields and values. If so, the existing item is updated. If not, a new list item is added. If the property does not exist or the format of the data is incorrect, returns false.
| 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.
If the list is not long enough, new entries are added. Any items added in this way will be given the same value as the new entry. If the property does not exist or the format of the data is incorrect, returns false.
| 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.
First looks in the map to see if any existing items match the specified key value. If so, the existing item is updated. If not, a new list item is added. If the property does not exist or the format of the data is incorrect, returns false.
| 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.
May be a table containing a number of fields that make up the property, or a single value. If the property could not be found, the returned table will be empty.
| 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.
The state property must be a list. The item returned will have values matching the specified key values in the key fields. The result may be a table containing a number of fields that make up the item, or a single value, depending on the data type of the list items. If the property or list item could not be found, the returned table will be empty. Sets index to be the index of the item, using the Lua convention that the first item is at index 1.
| 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.
The state property must be a list. Returns the item at the given index, using the Lua convention that the first item is at index 1. The result may be a table containing a number of fields that make up the item, or a single value, depending on the data type of the list items. If the property or list item could not be found, the returned table will be empty.
| 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.
The state property must be a map. The item returned will have values matching the specified key value. The result may be a table containing a number of fields that make up the item, or a single value, depending on the data type of the list items. If the property or map item could not be found, the returned table will be empty.
| 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.
May be a table containing a number of fields that make up the property, or a single value. If the property could not be found, the returned table will be empty.
| 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.
The property must be a list. The item returned will have values matching the specified key values in the key fields. The result may be a table containing a number of fields that make up the item, or a single value, depending on the data type of the list items. If the property or list item could not be found, the returned table will be empty. Sets index to be the index of the item, using the Lua convention that the first item is at index 1.
| 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.
The property must be a list. Returns the item at the given index, using the Lua convention that the first item is at index 1. The result may be a table containing a number of fields that make up the item, or a single value, depending on the data type of the list items. If the property or list item could not be found, the returned table will be empty.
| 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.
The property must be a map. The item returned will have values matching the specified key value. The result may be a table containing a number of fields that make up the item, or a single value, depending on the data type of the list items. If the property or map item could not be found, the returned table will be empty.
| bool luaScriptInterface::luaSetSystemAttribute | ( | DtScriptComponentSystem & | system, |
| const std::string & | attributeName, | ||
| const luabind::object & | value, | ||
| lua_State * | L | ||
| ) |
|
static |