Entitas::Collector(TEntity)
Inherits Enumerable / Entitas::ICollector / Reference / Object
A Collector can observe one or more groups from the same context and collects changed entities based on the specified groupEvent.
Constants
Log = ::Log.for(self)
Constructors
Creates a Collector and will collect changed entities based on the specified group_event.
Creates a Collector and will collect changed entities based on the specified group_events.
Instance methods
activate
Activates the Collector and will start collecting changed entities. Collectors are activated by default.
deactivate
Sourceempty?
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
entities
to_json(json : JSON::Builder)
Sourceto_s(io)
Source