Beispiel #1
0
        // Token: 0x06000028 RID: 40 RVA: 0x00003CA8 File Offset: 0x00001EA8
        public static PrototypeDungeonRoom GetRoomFromDungeon(string roomName, string floor)
        {
            roomName = roomName.ToLower();
            List <PrototypeDungeonRoom> roomsFromRoomTables = OfficialFlows.GetRoomsFromRoomTables(floor);

            foreach (PrototypeDungeonRoom prototypeDungeonRoom in roomsFromRoomTables)
            {
                Tools.Log <string>(prototypeDungeonRoom.name, "roomnames.txt");
                bool flag = prototypeDungeonRoom.name.ToLower().Equals(roomName);
                if (flag)
                {
                    return(prototypeDungeonRoom);
                }
            }
            List <DungeonFlowNode> allFlowNodes = OfficialFlows.GetAllFlowNodes(floor);
            bool flag2 = allFlowNodes == null;
            PrototypeDungeonRoom result;

            if (flag2)
            {
                result = null;
            }
            else
            {
                foreach (DungeonFlowNode dungeonFlowNode in allFlowNodes)
                {
                    PrototypeDungeonRoom overrideExactRoom = dungeonFlowNode.overrideExactRoom;
                    bool flag3 = overrideExactRoom != null;
                    if (flag3)
                    {
                        Tools.Log <string>(overrideExactRoom.name, "roomnames.txt");
                    }
                    bool flag4 = overrideExactRoom != null && overrideExactRoom.name.ToLower().Equals(roomName);
                    if (flag4)
                    {
                        return(overrideExactRoom);
                    }
                }
                result = null;
            }
            return(result);
        }
Beispiel #2
0
 // Token: 0x06000027 RID: 39 RVA: 0x00003C88 File Offset: 0x00001E88
 public static List <PrototypeDungeonRoom> GetRoomsFromRoomTables(int floor)
 {
     return(OfficialFlows.GetRoomsFromRoomTables(OfficialFlows.dungeonPrefabNames[floor]));
 }