entities.hooks module¶
Provides memory hooking functionality for entities.
-
class
entities.hooks.
EntityCondition
[source]¶ Bases:
object
Store some default entity conditions.
-
static
equals_datamap_classname
(*classnames)[source]¶ Return a function that requires an
entities.entity.Entity`
instance. The returned function returnsTrue
if the entity’s datamap classname equals one of the passed classnames.Return type: lambda
-
static
equals_entity_classname
(*classnames)[source]¶ Return a function that requires an
entities.entity.Entity`
instace. The returned function returnsTrue
if the entity’s classname equals one of the passed classnames.Return type: lambda
-
static