Class: Chione::IteratingSystem

Inherits:
System
  • Object
show all
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

System::DEFAULT_ASPECT_HASH

Instance Attribute Summary

Attributes inherited from System

#aspect_entities, #world

Instance Method Summary collapse

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

#inspect, #inspect_details

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.

Raises:

  • (NotImplementedError)


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