private static List <IRoof> AffirmRoofList(InsideCheck.GridPosition position) { InsideCheck.GridCell gridCell = InsideCheck.AffirmGridCell(position); if (gridCell.roofs == null) { gridCell.roofs = new List <IRoof>(); } return(gridCell.roofs); }
private static List <InsideCheck.WallChunk> AffirmWallList(InsideCheck.GridPosition position) { InsideCheck.GridCell gridCell = InsideCheck.AffirmGridCell(position); if (gridCell.walls == null) { gridCell.walls = new List <InsideCheck.WallChunk>(); } return(gridCell.walls); }