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

15 lines
301 B
C#

using MessagePack;
namespace Game.TicTacToe;
/// <summary>
/// Global game state stored on the singleton entity.
/// </summary>
[MessagePackObject]
public record struct GameState
{
[Key(0)] public Player CurrentPlayer;
[Key(1)] public GameStatus Status;
[Key(2)] public int MoveCount;
}