KoogleV4/GameModel/GameState.cs

19 lines
591 B
C#

using GameModel.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameModel
{
public record GameState(Guid Id, Guid GameId, string GameName,
ThrowState ThrowState, int NextPlayerId, IGameModel GameModel, int Counter)
{
public static GameState Create(Guid gameId, string gameName, ThrowState throwState, int nextPlayerId, IGameModel gameModel)
{
return new GameState(Guid.Empty, gameId, gameName, throwState, nextPlayerId, gameModel, 0);
}
}
}