직렬화 함수 작성 끝

This commit is contained in:
2025-06-09 03:47:48 +09:00
parent 5ba62b5312
commit 50c9bd68fc
47 changed files with 324 additions and 201 deletions

21
include/socket/packet.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <cstdint>
namespace Packet {
enum class Opcode {
NOP,
SPAWNMODEL,
DESPAWNMODEL,
UPDATEMODEL,
REQUESTMODELIDLIST,
COUNT
};
struct Header {
Opcode opcode;
std::uint32_t body_length;
};
} // namespace Packet