It's a nice package. Only the renderer is really new, it pulls physics/network etc. from good, well known libraries.
There isn't much documentation and it's a tiny developer/user community though, so I'm sticking to Ogre and pulling the same kind of assembly of libraries as they did.
Sounds like your problem is the mutable game state. You are already formulating an answer, controlling the order in which your game objects update.
For instance in id engines the player entities will always update before the game world entities .. it fixes some arcane problems, but it's not great. For instance if two players fire a weapon at exactly the same game frame, the one evaluated first (e.g. with the lowest id) is going to kill the other one. It's not fair but at least it's deterministic.
I don't think coroutines are your problem there. They are widely used, they allow you to express behaviors intuitively, but they do nothing to help you with game state management.
If I had to suggest a solution to order dependencies when modifying the game state, maybe I'd investigate have all entities working from one immutable "current state", and build a list of changes that need to happen: "this entity takes that much damage, this entity gets healed for that much, this object moves over there" .. you would then apply those to build a new state, and you'll inevitably have to resolve conflicts.
It's a nice package. Only the renderer is really new, it pulls physics/network etc. from good, well known libraries.
There isn't much documentation and it's a tiny developer/user community though, so I'm sticking to Ogre and pulling the same kind of assembly of libraries as they did.
Same .. archlinux-keyring 20210616-1
Right. Because it ain't right we'd be the only ones suffering.
Welp I removed `spdlog` to get my updates through..
Sounds like your problem is the mutable game state. You are already formulating an answer, controlling the order in which your game objects update.
For instance in id engines the player entities will always update before the game world entities .. it fixes some arcane problems, but it's not great. For instance if two players fire a weapon at exactly the same game frame, the one evaluated first (e.g. with the lowest id) is going to kill the other one. It's not fair but at least it's deterministic.
I don't think coroutines are your problem there. They are widely used, they allow you to express behaviors intuitively, but they do nothing to help you with game state management.
If I had to suggest a solution to order dependencies when modifying the game state, maybe I'd investigate have all entities working from one immutable "current state", and build a list of changes that need to happen: "this entity takes that much damage, this entity gets healed for that much, this object moves over there" .. you would then apply those to build a new state, and you'll inevitably have to resolve conflicts.
Hope this helps