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 Productions { get; init; } = []; public IReadOnlyList Demands { get; init; } = []; public IReadOnlyList Walls { get; init; } = []; public IReadOnlyList Stock { get; init; } = []; public int MaxDeadline => Demands.Count > 0 ? Demands.Max(d => d.Deadline) : 0; }