Skip to content

Minor Addition

Latest
Compare
Choose a tag to compare
@realtradam realtradam released this 03 Feb 09:21
· 7 commits to master since this release

Added

  • Added a method to the Entity Manager which allows grouping entities by components and then execute a block for each one.
FelECS::Entities.group(@component_manager_one, @component_manager_two).do |cmp1, cmp2, ent|
# do stuff with the components and entity
end