From 2b9b3e78d9d448e4dfb4eaaa87b5f290ebee9cff Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 2 Nov 2023 18:42:02 +0100 Subject: zombie chunks on server side --- 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 e0c47c6..732ea86 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -14,6 +14,7 @@ typedef enum t_network_message_type MESSAGE_USER_MOVED, MESSAGE_USER_LOOK, MESSAGE_USER_THROW, + MESSAGE_ZOMBIE_CHUNK_LIST, MESSAGE_ZOMBIE_LIST, MESSAGE_USER_SHOOT, MESSAGE_BULLET_LIST, @@ -66,6 +67,13 @@ typedef struct t_protocol_zombie_list zombie zombies[SERVER_MAX_ZOMBIES]; } protocol_zombie_list; +#include "zombie_chunk.h" +typedef struct t_protocol_zombie_chunk_list +{ + network_message_type type; + zombie_chunk zombie_chunks[MAX_ZOMBIE_CHUNKS]; +} protocol_zombie_chunk_list; + #include "drops.h" typedef struct t_protocol_drop_list { @@ -150,6 +158,7 @@ network_message create_protocol_user_look(u32 id, float gunx, float guny); network_message create_protocol_user_shoot(u32 id, float dirx, float diry); network_message create_protocol_user_throw(u32 id, float dirx, float diry, throwable_type type); network_message create_protocol_zombie_list(); +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(); -- cgit v1.2.3-70-g09d2