sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7.03k stars 1.11k forks source link

Provide component index for EntityIndex `getKey` delegate #1019

Open sschmid opened 1 year ago

sschmid commented 1 year ago

Change AbstractEntityIndex._getKey signature to

Func<TEntity, int, IComponent, TKey> 

to include the component index, which can be useful for exotic EntityIndexes using NoneOf matchers

See current weird implementation of EntityIndexTests.WorksWithNoneOf() and update using newly provided index.