eco2d/code/common/packets/packet_list.h

22 lines
417 B
C
Raw Normal View History

2021-05-04 08:08:00 +00:00
#pragma once
2021-05-04 11:04:15 +00:00
#include "packet_utils.h"
#include "packet.h"
2021-05-04 08:08:00 +00:00
// NOTE(zaklaus): pkt data
2021-05-04 11:04:15 +00:00
#define PKT_01_NUMBERS_SIZ 32
2021-05-04 08:08:00 +00:00
typedef struct {
uint32_t chunk_size;
uint32_t chunk_amount;
2021-05-04 11:04:15 +00:00
uint16_t numbers[PKT_01_NUMBERS_SIZ];
2021-05-04 08:08:00 +00:00
} pkt_01_welcome;
2021-05-04 11:04:15 +00:00
size_t pkt_01_welcome_encode(pkt_01_welcome *table);
extern pkt_desc pkt_01_welcome_desc[];
2021-05-04 08:08:00 +00:00
// NOTE(zaklaus): pkt handlers
PKT_HANDLER_PROC(pkt_01_welcome_handler);