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

Unique attribute for Any* events #1037

Open slimshader opened 1 year ago

slimshader commented 1 year ago

Hi,

shouldn't [Unique] attribute be applied to the component generated for Event.Any target? This way one can do:

_game.AddAnyPositionListener(this);

which also prevents adding listeners multiple times to multiple entities.