Module: Moon::EntitySystem::System

Defined in:
lib/moon/packages/entity_system/system.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

@@manager =
Manager.new

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object


55
56
57
58
59
# File 'lib/moon/packages/entity_system/system.rb', line 55

def self.included(mod)
  mod.extend         ClassMethods
  mod.send :include, InstanceMethods
  mod.register mod.to_s.demodulize.downcase.to_sym
end

.load(data) ⇒ Object


61
62
63
# File 'lib/moon/packages/entity_system/system.rb', line 61

def self.load(data)
  Object.const_get(data["&class"])
end

.managerObject


6
7
8
# File 'lib/moon/packages/entity_system/system.rb', line 6

def self.manager
  @@manager
end