Entitas::Matcher
Inherits Entitas::IAllOfMatcher / Entitas::IAnyOfMatcher / Entitas::INoneOfMatcher / Entitas::ICompoundMatcher / Entitas::IMatcher / Reference / Object
Constants
Constructors
class ::Entitas::Matcher
Create a matcher to match entities with "ALL" of the provided Entitas::Component classes
Entitas::Matcher.all_of(A, B)
Create a matcher to match entities that have "ALL" of the Entitas::Component classes
in the provided Int32 indexs to merge
Entitas::Matcher.all_of(0)
Create a matcher to match entities that have "ALL" of the Entitas::Component classes
in the provided Entitas::Component::Index indices to merge
Entitas::Matcher.all_of(Entitas::Component::Index::A)
Create a matcher to match entities that have "ALL" of the Entitas::Component classes
in the provided Entitas::Matcher instances to merge
m1 = Entitas::Matcher.all_of(A)
m2 = Entitas::Matcher.all_of(B)
matcher = Entitas::Matcher.all_of(m1, m2)
Create a matcher to match entities with "ANY" of the provided Entitas::Component classes
Entitas::Matcher.any_of(A, B)
Create a matcher to match entities that have "ANY" of the Entitas::Component classes
in the provided Int32 indexs to merge
Entitas::Matcher.any_of(0)
Create a matcher to match entities that have "ANY" of the Entitas::Component classes
in the provided Entitas::Component::Index indices to merge
Entitas::Matcher.any_of(Entitas::Component::Index::A)
Create a matcher to match entities that have "ANY" of the Entitas::Component classes
in the provided Entitas::Matcher instances to merge
m1 = Entitas::Matcher.any_of(A)
m2 = Entitas::Matcher.any_of(B)
matcher = Entitas::Matcher.any_of(m1, m2)
Create a matcher to match entities with "NONE" of the provided Entitas::Component classes
Entitas::Matcher.none_of(A, B)
Create a matcher to match entities that have "NONE" of the Entitas::Component classes
in the provided Int32 indexs to merge
Entitas::Matcher.none_of(0)
Create a matcher to match entities that have "NONE" of the Entitas::Component classes
in the provided Entitas::Component::Index indices to merge
Entitas::Matcher.none_of(Entitas::Component::Index::A)
Create a matcher to match entities that have "NONE" of the Entitas::Component classes
in the provided Entitas::Matcher instances to merge
m1 = Entitas::Matcher.none_of(A)
m2 = Entitas::Matcher.none_of(B)
matcher = Entitas::Matcher.none_of(m1, m2)
Instance methods
Equality. Returns true if each element in self is equal to each
corresponding element in other.
Create a matcher to match entities with "ALL" of the provided Entitas::Component classes
Entitas::Matcher.new.all_of(A, B)
Create a matcher to match entities that have "ALL" of the Entitas::Component classes
in the provided Int32 indices to merge
Entitas::Matcher.new.all_of(0)
Create a matcher to match entities that have "ALL" of the Entitas::Component classes
in the provided Entitas::Component::Index indices to merge
Entitas::Matcher.new.all_of(Entitas::Component::Index::A)
Create a matcher to match entities that have "ALL" of the Entitas::Component classes
in the provided Entitas::Matcher instances to merge
m1 = Entitas::Matcher.new.all_of(A)
m2 = Entitas::Matcher.new.all_of(B)
matcher = Entitas::Matcher.new.all_of(m1, m2)
Create a matcher to match entities with "ANY" of the provided Entitas::Component classes
Entitas::Matcher.new.any_of(A, B)
Create a matcher to match entities that have "ANY" of the Entitas::Component classes
in the provided Int32 indices to merge
Entitas::Matcher.new.any_of(0)
Create a matcher to match entities that have "ANY" of the Entitas::Component classes
in the provided Entitas::Component::Index indices to merge
Entitas::Matcher.new.any_of(Entitas::Component::Index::A)
Create a matcher to match entities that have "ANY" of the Entitas::Component classes
in the provided Entitas::Matcher instances to merge
m1 = Entitas::Matcher.new.any_of(A)
m2 = Entitas::Matcher.new.any_of(B)
matcher = Entitas::Matcher.new.any_of(m1, m2)
Create a matcher to match entities with "NONE" of the provided Entitas::Component classes
Entitas::Matcher.new.none_of(A, B)
Create a matcher to match entities that have "NONE" of the Entitas::Component classes
in the provided Int32 indices to merge
Entitas::Matcher.new.none_of(0)
Create a matcher to match entities that have "NONE" of the Entitas::Component classes
in the provided Entitas::Component::Index indices to merge
Entitas::Matcher.new.none_of(Entitas::Component::Index::A)
Create a matcher to match entities that have "NONE" of the Entitas::Component classes
in the provided Entitas::Matcher instances to merge
m1 = Entitas::Matcher.new.none_of(A)
m2 = Entitas::Matcher.new.none_of(B)
matcher = Entitas::Matcher.new.none_of(m1, m2)