Module: Moon::EntitySystem::System::InstanceMethods

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#worldObject (readonly)

Returns the value of attribute world


21
22
23
# File 'lib/moon/packages/entity_system/system.rb', line 21

def world
  @world
end

Instance Method Details

#exportObject


46
47
48
# File 'lib/moon/packages/entity_system/system.rb', line 46

def export
  to_h.stringify_keys
end

#import(data) ⇒ Object


50
51
52
# File 'lib/moon/packages/entity_system/system.rb', line 50

def import(data)
  self
end

#initObject


28
29
30
# File 'lib/moon/packages/entity_system/system.rb', line 28

def init  #

end

#initialize(world) ⇒ Object


23
24
25
26
# File 'lib/moon/packages/entity_system/system.rb', line 23

def initialize(world)
  @world = world
  init
end

#process(delta, entity) ⇒ Object


36
37
38
# File 'lib/moon/packages/entity_system/system.rb', line 36

def process(delta, entity)
  #
end

#to_hObject


40
41
42
43
44
# File 'lib/moon/packages/entity_system/system.rb', line 40

def to_h
  {
    :"&class" => to_s
  }
end

#update(delta) ⇒ Object


32
33
34
# File 'lib/moon/packages/entity_system/system.rb', line 32

def update(delta)
  #
end