protected override List <Loc> getAllFreeTiles(getOpen func) { List <Loc> freeTiles = new List <Loc>(); //get all places that items are eligible for (int ii = 0; ii < RoomPlan.RoomCount; ii++) { IRoomGen room = RoomPlan.GetRoom(ii); List <Loc> tiles = func(room.Draw); freeTiles.AddRange(tiles); } return(freeTiles); }
protected virtual List <Loc> getAllFreeTiles(getOpen func) { return(func(new RogueElements.Rect(0, 0, Width, Height))); }