refactor(network): replace HandCard with std::multiset<Card> in InitGamePayload

- Updated `InitGamePayload` to use `std::multiset<Card>` for `handCard`.
- Removed `serializeHandCard` method and replaced its usage with `serializeCards`.
- Adjusted `deserializeHandCard` to return `std::multiset<Card>` and simplified insertion logic.
- Cleaned up unused declarations in `MessageSerializer`.
This commit is contained in:
Kieran Kihn
2025-12-02 12:06:21 +08:00
parent 8a00b66047
commit 016e87288d
3 changed files with 6 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ namespace UNO::NETWORK {
struct InitGamePayload {
GAME::DiscardPile discardPile;
GAME::HandCard handCard;
std::multiset<GAME::Card> handCard;
size_t currentPlayerIndex;
};