I’m building a basic game using sockets & threads. Yeah. Really simple.
But I want it to be abstract.
I want the client to be able to ask about the game world (multiple maps) and get a perfect state for it at that moment, as well as to be able to push changes (e.g.: move my entity, attack a bush, whatev).
I’m stumped though on what sort of data to send through the socket. What is standard for multiplayer games? Serialized objects? A string header declaring an object followed by its attributes?