mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 10:23:16 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user