Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 13 and Version 14 of code/doc/Network


Ignore:
Timestamp:
May 24, 2018, 3:18:42 PM (7 years ago)
Author:
varyo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Network

    v13 v14  
    3737== Overview Internal Dataflow through the Network Engine ('18) ==
    3838[[Image(network_overview.png, 78%)]]
     39
    3940A Synchronisable is a class, which is going to be synced with the server. A Synchronisable contains several variables (A ship would have its position and speed as synchronised variables). All of the Classes registered as Synchronisable with its variables are collected by GamestateClient, and are packed in a Gamestate. A Gamestate is basically a list of all Synchronisables. The Gamestate is then compressed and sent by ClientConnection as a packet to the server. GamestateManager also receives new Gamestates from the server, which gets decompressed, unpacked and sent to the client game. This process syncs all Synchronisables to the server.