18 lines
570 B
C#
18 lines
570 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)
|
|
{
|
|
public static GameState Create(Guid gameId, string gameName, ThrowState throwState, int nextPlayerId, IGameModel gameModel)
|
|
{
|
|
return new GameState(Guid.NewGuid(), gameId, gameName, throwState, nextPlayerId, gameModel);
|
|
}
|
|
}
|
|
}
|