|
CeresEngine 0.2.0
A game development framework
|
A predicate that checks if the entity has parent as it's parent entity.
More...
#include <CeresEngine/Entity/EntityPredicate.hpp>
Public Member Functions | |
| ParentPredicate (const Entity parent) | |
Creates a new ParentPredicate instance. | |
| bool | operator() (const Entity &entity) const noexcept |
| Executes the predicate. | |
Public Attributes | |
| const Entity | parent |
| The parent to be checked against. | |
A predicate that checks if the entity has parent as it's parent entity.
Creates a new ParentPredicate instance.
| parent | The parent to be checked against |
Executes the predicate.
| entity | The entity to execute the predicate against |
true if the entity parent is parent, false otherwise.