Script version of the EntityFilter.
More...
#include <script_entity_filter.h>
Script version of the EntityFilter.
| ScriptEntityFilter::ScriptEntityFilter |
( |
luabind::object |
componentTypes, |
|
|
bool |
recordChanges |
|
) |
| |
Constructor.
- Parameters
-
| componentTypes | A Lua table containing the Lua class objects of the components that should be filtered for |
| recordChanges | If true, this entity filter will keep track of the entities added and removed during a frame. |
| ScriptEntityFilter::ScriptEntityFilter |
( |
luabind::object |
componentTypes | ) |
|
Constructor.
This is the same as the other constructor, but with recordChanges as false.
- Parameters
-
| componentTypes | A Lua table containing the Lua class objects of the components that should be filtered for |
| const std::unordered_set< EntityId > & ScriptEntityFilter::addedEntities |
( |
| ) |
|
Returns the set of added entities.
Be sure to call clearChanges() once you have processed all added and removed entities.
| bool ScriptEntityFilter::containsEntity |
( |
EntityId |
id | ) |
const |
Checks for an entity id.
- Parameters
-
- Returns
true if the entity is contained in this filter, false otherwise.
| luabind::scope ScriptEntityFilter::luaBindings |
( |
| ) |
|
|
static |
| const std::unordered_set< EntityId > & ScriptEntityFilter::removedEntities |
( |
| ) |
|
The set of removed entities.
Be sure to call clearChanges() once you have processed all added and removed entities.
The documentation for this class was generated from the following files:
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/scripting/script_entity_filter.h
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/scripting/script_entity_filter.cpp