Most game logic has the luxury of being re-run every frame. That makes it a lot simpler than having to register events and callbacks and keep track of them or cancel them if something changes.
Sometimes I use that style in server code and it’s simpler and not too expensive if you’re not at huge scale. Worth trying.
Sometimes I use that style in server code and it’s simpler and not too expensive if you’re not at huge scale. Worth trying.