Chessistics/chessistics-engine/Model/LevelDef.cs

17 lines
611 B
C#
Raw Permalink Normal View History

namespace Chessistics.Engine.Model;
public class LevelDef
{
public int Id { get; init; }
public string Name { get; init; } = "";
public string Description { get; init; } = "";
public int Width { get; init; }
public int Height { get; init; }
public IReadOnlyList<ProductionDef> Productions { get; init; } = [];
public IReadOnlyList<DemandDef> Demands { get; init; } = [];
public IReadOnlyList<Coords> Walls { get; init; } = [];
public IReadOnlyList<PieceStock> Stock { get; init; } = [];
public int MaxDeadline => Demands.Count > 0 ? Demands.Max(d => d.Deadline) : 0;
}