diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-07 18:36:59 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-07 18:36:59 +0100 |
| commit | cf3cfecbcac3835c84dce3711884b7ce0a81b6b8 (patch) | |
| tree | 413861dbca37c2a13129a97367d40a06cdd8d4f9 /include/protocol.h | |
| parent | 8777713844f81a7ee171ddbd4e910d83122c9f74 (diff) | |
sync round data
Diffstat (limited to 'include/protocol.h')
| -rw-r--r-- | include/protocol.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h index 51d6fb8..6113682 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -21,6 +21,7 @@ typedef enum t_network_message_type MESSAGE_DROP_LIST, MESSAGE_SOUND_LIST, MESSAGE_THROWABLES_LIST, + MESSAGE_ROUND_DATA, } network_message_type; typedef struct t_protocol_generic_client_message @@ -81,6 +82,13 @@ typedef struct t_protocol_drop_list drop drops[MAX_DROPS]; } protocol_drop_list; +#include "rounds.h" +typedef struct t_protocol_round +{ + network_message_type type; + zombie_round round; +} protocol_round; + typedef enum t_protocol_move_type { MOVE_UP, @@ -169,6 +177,7 @@ network_message create_protocol_zombie_chunk_list(); network_message create_protocol_bullets_list(); network_message create_protocol_drop_list(); network_message create_protocol_throwables_list(); +network_message create_protocol_round_data(zombie_round round); array messages_received_on_server; array messages_received_on_client; |
