jeffcampbellmakesgames / Entitas-Redux

An entity-component framework for Unity with code generation and visual debugging
MIT License
104 stars 13 forks source link

Add `IContext.EntityIndices` to retrieve all `IEntityIndex`es #64

Closed JesseTG closed 2 years ago

JesseTG commented 2 years ago

Description

In my own game, I have a need to retrieve all IEntityIndexes within a IContext. Specifically, I manually deactivate each IEntityIndex at the end of each test in my suite to ensure that no Entitys are retained behind my back.

I add a new method to IContext, and then I implement it in Context<T>.

How Has This Been Tested?

I added a new test to the suite, and it passes.

Checklist:

jeffcampbellmakesgames commented 2 years ago

This has been merged to develop and should be available soon in v2.1.3.