Method: Chione::System#initialize
- Defined in:
- lib/chione/system.rb
#initialize(world) ⇒ System
Create a new Chione::System for the specified world.
114 115 116 117 118 119 120 121 122 |
# File 'lib/chione/system.rb', line 114 def initialize( world, * ) self.log.debug "Setting up %p" % [ self.class ] @world = world @aspect_entities = self.class.aspects.each_with_object( {} ) do |(aspect_name, aspect), hash| matching_set = world.entities_with( aspect ) self.log.debug "Initial Set with the %s aspect: %p" % [ aspect_name, matching_set] hash[ aspect_name ] = matching_set end end |