From cf3cfecbcac3835c84dce3711884b7ce0a81b6b8 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 7 Nov 2023 18:36:59 +0100 Subject: sync round data --- include/protocol.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/protocol.h') 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; -- cgit v1.2.3-70-g09d2