sebas77/Svelto.ECS

[3.5.0-pre] Filter.Add behavior changed, throws exeption

g-jozsef opened this issue · 1 comments

when adding the entity twice to a filter it now throws an exception instead of returning false

//TODO: check what happens (unit test) if adding the same entityID twice

public void Add(uint entityId, uint indexInComponentArray)
used to be
public bool Add(uint entityId, uint indexInComponentArray)

I do not remember at all why I changed this behaviour, but I 100% changed it purposely. We need to discuss what I could possibly wanted to avoid and pros and cons