// Get a set of all rooms used in the dungeons. Used by // HighlightingMinimap. public HashSet <int> GetRoomsUsedInDungeons() { var rooms = new HashSet <int>(); for (int i = 0; i < GetNumDungeons(); i++) { Dungeon d = GetIndexedDataType <Dungeon>(i); for (int f = 0; f < d.NumFloors; f++) { for (int x = 0; x < d.MapWidth; x++) { for (int y = 0; y < d.MapHeight; y++) { rooms.Add(d.GetRoom(x, y, f).Index); } } } } return(rooms); }