BurgundyDev / ReddyEngine

Game for the 2022 GitHub Game Off!
MIT License
2 stars 1 forks source link

Remove componentManager -> collect update #80

Closed Daivuk closed 2 years ago

Daivuk commented 2 years ago

For updating, we want to not update children if an entity is disabled. This is hard to do with the current component manager because its a flat array...

Because components can manipulate the tree in update, we need to visit the tree and "collect" the components to update, then update them from that collected flat array