Class: BeltsEngine::Ecs::Entity

Inherits:
Hash
  • Object
show all
Defined in:
lib/belts_engine/ecs/entity.rb

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Entity

Returns a new instance of Entity.



3
4
5
# File 'lib/belts_engine/ecs/entity.rb', line 3

def initialize(id)
  self[:id] = id
end

Instance Method Details

#add_componentsObject



7
8
9
# File 'lib/belts_engine/ecs/entity.rb', line 7

def add_components()
  self[name] = value
end