3mcd / javelin

ECS and multiplayer game development toolkit
https://javelin.games
198 stars 16 forks source link

onAttach/onDetach triggers don't include entities added prior to first world tick #151

Closed 3mcd closed 3 years ago

3mcd commented 3 years ago

Triggers currently don't account for entities that were added prior to the first world tick. This should be simple to fix by iterating matching archetypes upon initialization rather than waiting for the world.attached and world.detached signals to fire.