summaryrefslogtreecommitdiff
path: root/include/protocol.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 16:44:17 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 16:44:17 +0100
commit66b82a20506b53ce8dc5dde8e6ea0979a22610f0 (patch)
tree32b6e62c93e9f68a907f2095243e931614de1670 /include/protocol.h
parent8c086739e1344fb8789e89074dd962c5719ab030 (diff)
work
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/protocol.h b/include/protocol.h
index f02e873..a49aaab 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -13,6 +13,7 @@ typedef enum t_network_message_type
MESSAGE_ZOMBIE_LIST,
MESSAGE_USER_SHOOT,
MESSAGE_BULLET_LIST,
+ MESSAGE_DROP_LIST,
} network_message_type;
typedef struct t_protocol_generic_client_message
@@ -45,12 +46,20 @@ typedef struct t_protocol_user_list
player players[10];
} protocol_user_list;
+#include "zombies.h"
typedef struct t_protocol_zombie_list
{
network_message_type type;
- zombie zombies[20];
+ zombie zombies[MAX_ZOMBIES];
} protocol_zombie_list;
+#include "drops.h"
+typedef struct t_protocol_drop_list
+{
+ network_message_type type;
+ drop drops[MAX_DROPS];
+} protocol_drop_list;
+
typedef enum t_protocol_move_type
{
MOVE_UP,
@@ -100,6 +109,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_zombie_list();
network_message create_protocol_bullets_list();
+network_message create_protocol_drop_list();
array messages_received_on_server;
array messages_received_on_client;