public static PrototypeDungeonRoom GetRoomFromDungeon(string roomName, string floor) { roomName = roomName.ToLower(); var rooms = GetRoomsFromRoomTables(floor); foreach (var room in rooms) { Tools.Log(room.name, "roomnames.txt"); if (room.name.ToLower().Equals(roomName)) { return(room); } } var nodes = OfficialFlows.GetAllFlowNodes(floor); if (nodes == null) { return(null); } foreach (var node in nodes) { var overrideRoom = node.overrideExactRoom; if (overrideRoom != null) { Tools.Log(overrideRoom.name, "roomnames.txt"); } if (overrideRoom != null && overrideRoom.name.ToLower().Equals(roomName)) { return(overrideRoom); } } return(null); }
// Token: 0x0600002A RID: 42 RVA: 0x00003E08 File Offset: 0x00002008 public static DungeonFlowNode GetNodeFromDungeon(string roomName, string floor) { roomName = roomName.ToLower(); List <DungeonFlowNode> allFlowNodes = OfficialFlows.GetAllFlowNodes(floor); bool flag = allFlowNodes == null; DungeonFlowNode result; if (flag) { result = null; } else { foreach (DungeonFlowNode dungeonFlowNode in allFlowNodes) { PrototypeDungeonRoom overrideExactRoom = dungeonFlowNode.overrideExactRoom; bool flag2 = overrideExactRoom != null && overrideExactRoom.name.ToLower().Equals(roomName); if (flag2) { return(dungeonFlowNode); } } result = null; } return(result); }
public static DungeonFlowNode GetNodeFromDungeon(string roomName, string floor) { roomName = roomName.ToLower(); var nodes = OfficialFlows.GetAllFlowNodes(floor); if (nodes == null) { return(null); } foreach (var node in nodes) { var overrideRoom = node.overrideExactRoom; if (overrideRoom != null && overrideRoom.name.ToLower().Equals(roomName)) { return(node); } } return(null); }
// 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); }
// Token: 0x0600002C RID: 44 RVA: 0x00003F20 File Offset: 0x00002120 public static List <DungeonFlowNode> GetAllFlowNodes(int floor) { return(OfficialFlows.GetAllFlowNodes(OfficialFlows.dungeonPrefabNames[floor])); }