eco2d/code/common/packets/pkt_01_welcome.h

23 lines
600 B
C
Raw Normal View History

2021-05-04 11:04:15 +00:00
#pragma once
2021-05-05 13:14:02 +00:00
#include "system.h"
2021-05-04 14:01:47 +00:00
#include "packet_utils.h"
typedef struct {
2021-05-05 09:25:05 +00:00
uint64_t ent_id;
2021-05-04 17:39:50 +00:00
uint16_t block_size;
uint16_t chunk_size;
uint16_t world_size;
2021-05-04 14:01:47 +00:00
} pkt_01_welcome;
2021-05-06 15:30:38 +00:00
size_t pkt_01_welcome_send(uint64_t peer_id,
uint16_t view_id,
uint64_t ent_id,
uint16_t block_size,
uint16_t chunk_size,
uint16_t world_size);
2021-05-04 14:01:47 +00:00
size_t pkt_01_welcome_encode(pkt_01_welcome *table);
2021-05-05 13:14:02 +00:00
pkt_desc pkt_01_welcome_desc[];
2021-05-04 14:01:47 +00:00
PKT_HANDLER_PROC(pkt_01_welcome_handler);
2021-05-04 11:04:15 +00:00