Class: Chione::IteratingSystem
- Defined in:
- lib/chione/iterating_system.rb
Overview
Process all entities matching an aspect iteratively for every World timing loop iteration.
Constant Summary
Constants inherited from System
Instance Attribute Summary
Attributes inherited from System
Instance Method Summary collapse
-
#process(aspect_name, entity_id, components) ⇒ Object
Process the given
components(which match the system’s Aspect) for the specifiedentity_id.
Methods inherited from System
aspect, #aspects, #entities, #entity_components_updated, #event_handlers, every_tick, inherited, #initialize, inject, #injected_systems, #inserted, on, #removed, #start, #stop
Methods included from MethodUtilities
#attr_predicate, #attr_predicate_accessor, #singleton_attr_accessor, #singleton_attr_reader, #singleton_attr_writer, #singleton_method_alias, #singleton_predicate_accessor, #singleton_predicate_reader
Methods included from Inspection
Constructor Details
This class inherits a constructor from Chione::System
Instance Method Details
#process(aspect_name, entity_id, components) ⇒ Object
Process the given components (which match the system’s Aspect) for the specified entity_id. Concrete subclasses are required to override this.
28 29 30 |
# File 'lib/chione/iterating_system.rb', line 28 def process( aspect_name, entity_id, components ) raise NotImplementedError, "%p does not implement #%s" % [ self.class, __method__ ] end |