2026-07-18 20:43:13 +08:00
|
|
|
using MessagePack;
|
|
|
|
|
|
2026-07-20 16:41:10 +08:00
|
|
|
namespace Game.TicTacToe;
|
2026-07-18 20:43:13 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Global game state stored on the singleton entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MessagePackObject]
|
|
|
|
|
public struct GameState
|
|
|
|
|
{
|
|
|
|
|
[Key(0)] public Player CurrentPlayer;
|
|
|
|
|
[Key(1)] public GameStatus Status;
|
|
|
|
|
[Key(2)] public int MoveCount;
|
|
|
|
|
}
|