17 lines
374 B
C#
17 lines
374 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameModel
|
|
{
|
|
public record Game(Guid Id, GameStatus GameStatus, string GameName)
|
|
{
|
|
public static Game Create(string gameName)
|
|
{
|
|
return new Game(Guid.NewGuid(), GameStatus.Running, gameName);
|
|
}
|
|
}
|
|
}
|