직렬화 함수 작성 끝
This commit is contained in:
21
include/socket/packet.h
Normal file
21
include/socket/packet.h
Normal 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
|
||||
Reference in New Issue
Block a user