15 lines
289 B
C#
15 lines
289 B
C#
|
|
using MessagePack;
|
||
|
|
|
||
|
|
namespace TicTacToe;
|
||
|
|
|
||
|
|
/// <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;
|
||
|
|
}
|