sschmid / Entitas

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

Why do not use type IEnumerable<TKey> as "getKey" param? #1056

Open Weiged opened 1 year ago

Weiged commented 1 year ago

Ask a question A clear and concise question. Ex. How to do xyz? There is no need for limit param to Array. IEnumerable is enouth and more flexible.

sschmid commented 1 year ago

Do you mean in AbstractEntityIndex? https://github.com/sschmid/Entitas/blob/develop/src/Entitas/EntityIndex/AbstractEntityIndex.cs#L23

We could change getKeys to IEnumerable