When the user clicks the "upgrade" button, the upgrade query is sent to the server, but their device still sees the old level. (Upgrading "takes a turn".)
The next turn, however, they DO need to receive the upgraded level from the server (if it was succesful).
I think it's wasteful to send the level information every single turn, so I think I need to "mark" the level stats as having changed and in need of a send-to-client.
(If that doesn't work, I'm fine with sending it every turn. It's a small bit of info.)
When the user clicks the "upgrade" button, the upgrade query is sent to the server, but their device still sees the old level. (Upgrading "takes a turn".)
The next turn, however, they DO need to receive the upgraded level from the server (if it was succesful).
I think it's wasteful to send the level information every single turn, so I think I need to "mark" the level stats as having changed and in need of a send-to-client.
(If that doesn't work, I'm fine with sending it every turn. It's a small bit of info.)