예제 #1
0
        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);
        }
예제 #2
0
 protected virtual List <Loc> getAllFreeTiles(getOpen func)
 {
     return(func(new RogueElements.Rect(0, 0, Width, Height)));
 }