Context: I’m handling game logic in my game state/characters/controllers/controller components, and every once in a while I’m dispatching an event to the HUD to update something.
Due to SOLID, the HUDs shouldn’t keep references to all the things that might call them, but I still want to wait for HUD animations to finish before proceeding.
What is the best way to handle this? There’s no way to return async from a dispatched event and I don’t really want to put delays everywhere.
Thanks!