CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::NamePredicate Struct Reference

#include <CeresEngine/Entity/EntityPredicate.hpp>

Inheritance diagram for CeresEngine::NamePredicate:
CeresEngine::Predicate< ParentPredicate >

Public Member Functions

 NamePredicate (String name)
 Creates a new NamePredicate instance.
 
bool operator() (const Entity &entity) const noexcept
 Executes the predicate.
 

Public Attributes

const String name
 The name to be checked against.
 

Constructor & Destructor Documentation

◆ NamePredicate()

CeresEngine::NamePredicate::NamePredicate ( String  name)
inlineexplicit

Creates a new NamePredicate instance.

Parameters
nameThe name to be checked against

Member Function Documentation

◆ operator()()

bool CeresEngine::NamePredicate::operator() ( const Entity entity) const
inlinenoexcept

Executes the predicate.

Parameters
entityThe entity to execute the predicate against
Returns
true if the entity parent is parent, false otherwise.

Member Data Documentation

◆ name

const String CeresEngine::NamePredicate::name

The name to be checked against.


The documentation for this struct was generated from the following file: