diff options
Diffstat (limited to 'src/include/data_network.h')
-rw-r--r-- | src/include/data_network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/data_network.h b/src/include/data_network.h index dfc93a0..9725cd5 100644 --- a/src/include/data_network.h +++ b/src/include/data_network.h @@ -7,8 +7,11 @@ #include "data_lemming.h" #include "events.h" +// All necessary stuff to ensure that client node on the network can synchronize each other + #define DEFAULT_LISTEN_PORT 9999 + enum gameState { gameNew, gameRunning, gameEnded }; typedef struct { @@ -34,6 +37,7 @@ typedef struct _client_t { typedef struct { id_t lemCount; + // Everything in this game for network syncing is based on events (a valid action of a local or remote player at one tick eventList_t elist; client_t local, net; //TODO : reprendre un peu, bcp de champs dupliqués pour rien } netGame_t; |