17 lines
384 B
C#
17 lines
384 B
C#
using MessagePack;
|
|
|
|
namespace Blackjack;
|
|
|
|
/// <summary>
|
|
/// Global game state stored on the singleton entity.
|
|
/// </summary>
|
|
[MessagePackObject]
|
|
public struct GameState
|
|
{
|
|
[Key(0)] public GamePhase Phase;
|
|
[Key(1)] public RoundResult Result;
|
|
[Key(2)] public int Chips;
|
|
[Key(3)] public int CurrentBet;
|
|
[Key(4)] public int RoundNumber;
|
|
[Key(5)] public uint Seed;
|
|
} |