17 lines
611 B
C#
17 lines
611 B
C#
|
|
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;
|
||
|
|
}
|