40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Koogle.Domain.Enums;
|
|
using Koogle.Domain.Interfaces;
|
|
|
|
namespace Koogle.Application.Games.ChristmasTree;
|
|
|
|
/// <summary>
|
|
/// Game definition for the Christmas Tree (Tannenbaum) bowling game.
|
|
/// </summary>
|
|
public class ChristmasTreeGameDefinition : IGameDefinition
|
|
{
|
|
/// <inheritdoc />
|
|
public string Name => "ChristmasTree";
|
|
|
|
/// <inheritdoc />
|
|
public string DisplayName => "Tannenbaum";
|
|
|
|
/// <inheritdoc />
|
|
public Type SetupComponentType =>
|
|
Type.GetType("Koogle.Web.Components.Game.ChristmasTree.ChristmasTreeSetup, Koogle.Web", true)!;
|
|
|
|
/// <inheritdoc />
|
|
public Type BoardComponentType =>
|
|
Type.GetType("Koogle.Web.Components.Game.ChristmasTree.ChristmasTreeBoard, Koogle.Web", true)!;
|
|
|
|
/// <inheritdoc />
|
|
public Type GameLogicServiceType => typeof(ChristmasTreeGameLogicService);
|
|
|
|
/// <inheritdoc />
|
|
public Type GameModelType => typeof(ChristmasTreeGameModel);
|
|
|
|
/// <inheritdoc />
|
|
public TeamMode TeamMode => TeamMode.Required;
|
|
|
|
/// <inheritdoc />
|
|
public int MinTeams => 2;
|
|
|
|
/// <inheritdoc />
|
|
public int? MaxTeams => null; // Unlimited teams
|
|
}
|