public Cell(int depth, MPos position, MPos size, GridGeneratorInfo info, bool divideHorizontal = true) { Depth = depth; Position = position; Size = size; this.info = info; this.divideHorizontal = divideHorizontal; }
public PieceCell(MPos position, MPos size, GridGeneratorInfo info, bool divideHorizontal = true) { Position = position; Size = size; this.info = info; this.divideHorizontal = divideHorizontal; PieceAvailable = size.X <= 2 * info.CellSize && size.Y <= 2 * info.CellSize; }
public GridGenerator(Random random, MapLoader loader, GridGeneratorInfo info) : base(random, loader) { this.info = info; road = new bool[Bounds.X, Bounds.Y]; }