Method: FelFlame::Entities#delete
- Defined in:
- lib/felflame/entity_manager.rb
#delete ⇒ Boolean
Removes this Entity from the list and purges all references to this Entity from other Components, as well as its data.
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/felflame/entity_manager.rb', line 43 def delete components.each do |_component_manager, component_array| component_array.reverse_each do |component| component.entities.delete(self) end end FelFlame::Entities._data.delete self @components = {} true end |