Example #1
0
        // Token: 0x0600002B RID: 43 RVA: 0x00003EAC File Offset: 0x000020AC
        public static List <DungeonFlowNode> GetAllFlowNodes(string floor)
        {
            Dungeon dungeonPrefab           = OfficialFlows.GetDungeonPrefab(floor);
            List <DungeonFlowNode> allNodes = dungeonPrefab.PatternSettings.flows[0].AllNodes;

            for (int i = 1; i < dungeonPrefab.PatternSettings.flows.Count; i++)
            {
                allNodes.Concat(dungeonPrefab.PatternSettings.flows[i].AllNodes);
            }
            return(allNodes);
        }
Example #2
0
        // Token: 0x06000026 RID: 38 RVA: 0x00003BD4 File Offset: 0x00001DD4
        public static List <PrototypeDungeonRoom> GetRoomsFromRoomTables(string floor)
        {
            Dungeon dungeon = OfficialFlows.GetDungeonPrefab(floor);
            List <PrototypeDungeonRoom> list = new List <PrototypeDungeonRoom>();

            for (int i = 0; i < dungeon.PatternSettings.flows.Count; i++)
            {
                foreach (WeightedRoom weightedRoom in dungeon.PatternSettings.flows[i].fallbackRoomTable.includedRooms.elements)
                {
                    list.Add(weightedRoom.room);
                }
            }
            dungeon = null;
            return(list);
        }