mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-28 02:33:18 +08:00
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:
@@ -35,7 +35,7 @@ namespace UNO::NETWORK {
|
||||
|
||||
struct InitGamePayload {
|
||||
GAME::DiscardPile discardPile;
|
||||
GAME::HandCard handCard;
|
||||
std::multiset<GAME::Card> handCard;
|
||||
size_t currentPlayerIndex;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user