feat(network): add MessageSerializer for message serialization/deserialization

- Implemented `MessageSerializer` class to handle JSON serialization and deserialization of game messages and payloads.
- Added `MessageSerializer.cpp` and `MessageSerializer.h` to `CMakeLists.txt`.
- Linked `nlohmann_json` library to the project.
This commit is contained in:
Kieran Kihn
2025-11-21 22:50:31 +08:00
parent 820358e0a3
commit 6ea7ad71c2
5 changed files with 362 additions and 16 deletions

View File

@@ -44,6 +44,12 @@ namespace UNO::GAME {
return cards_.front();
}
const std::deque<Card> &CardTile::getCards() const
{
return this->cards_;
}
bool CardTile::isEmpty() const
{
return cards_.empty();