oecs-sharp/Game.Blackjack/Singletons/GameState.cs

17 lines
396 B
C#
Raw Permalink Normal View History

2026-07-18 23:26:56 +08:00
using MessagePack;
namespace Game.Blackjack;
2026-07-18 23:26:56 +08:00
/// <summary>
/// Global game state stored on the singleton entity.
/// </summary>
[MessagePackObject]
public record struct GameState
2026-07-18 23:26:56 +08:00
{
[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;
}