diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-02 18:42:02 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-02 18:42:02 +0100 |
| commit | 2b9b3e78d9d448e4dfb4eaaa87b5f290ebee9cff (patch) | |
| tree | b2c1ccec5c03e69d4c709634184942ef39ebffca /include/protocol.h | |
| parent | 11fc04b238ff9d42b17e6befa6ab4a673606fc1a (diff) | |
zombie chunks on server side
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 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(); |
