Graf Zahl wrote:You have to send the change request through the network. UI will never be able to safely touch play directly.Nash wrote:Please answer clearly - will there eventually be a way for UI classes to safely touch play classes?
Best think about this like a strictly separated C/S architecture from the start, where the server data (play) is merely shadowed on the client side (UI) but changing it won't have any effect.
Realistically I have to say that all the intermingling of classes will only confuse people, to make this really clear it would be necessary to have server/play and client/ui run in completely different address spaces both with their own definitions of stuff that get tailored to each side's needs. Of course that cannot be implemented on realistic terms right now.
Maybe for GZDoom 4.0...
ZZYZX wrote:EventHandler.SendNetworkEvent. See viewtopic.php?p=982446#p982446
And see various examples above on how to actually set it up.
Alright, thank you for the explanation, ZZYZX and Graf. I will learn how to use SendNetworkEvent.