26 lines
665 B
C#
26 lines
665 B
C#
using Koogle.Domain.Enums;
|
|
|
|
namespace Koogle.Application.Games.Training;
|
|
|
|
/// <summary>
|
|
/// Setup model for Training game.
|
|
/// </summary>
|
|
public record TrainingGameSetup : GameSetupModelBase
|
|
{
|
|
/// <inheritdoc />
|
|
public override string GameType => "Training";
|
|
|
|
/// <summary>
|
|
/// Creates a default TrainingGameSetup with specified base parameters.
|
|
/// </summary>
|
|
public static TrainingGameSetup Create(
|
|
ThrowMode throwMode,
|
|
int throwsPerRound,
|
|
ParticipantsMode participantsMode) => new()
|
|
{
|
|
ThrowMode = throwMode,
|
|
ThrowsPerRound = throwsPerRound,
|
|
ParticipantsMode = participantsMode
|
|
};
|
|
}
|