finish serialize

This commit is contained in:
2024-10-18 15:36:00 +02:00
parent 69d96b40ec
commit 871caf9056
9 changed files with 337 additions and 20 deletions

View File

@@ -1,8 +1,8 @@
#pragma once
#include <array>
#include <string>
#include <td/Types.h>
#include <array>
namespace td {
namespace protocol {
@@ -11,13 +11,13 @@ namespace cdata {
struct PlaceTower {
CastleType m_Type : 4;
TowerType m_Type : 4;
PlayerID m_Placer : 4;
CastleCoords m_Position;
TowerCoords m_Position;
};
struct UpgradeTower {
CastleID m_Tower : 12;
TowerID m_Tower : 12;
std::uint8_t m_Upgrade : 4;
};