public static List <GClass38.GClass39> smethod_0(string string_0) { XmlNodeType xmlNodeType; GClass38.GClass39 gclass39 = new GClass38.GClass39(); GClass38.GClass41 gclass41 = new GClass38.GClass41(); GClass38.GClass42 gclass42 = new GClass38.GClass42(); GClass38.GClass40 gclass40 = new GClass38.GClass40(); List <GClass38.GClass39> list = new List <GClass38.GClass39>(); XmlTextReader xmlTextReader = new XmlTextReader(Application.StartupPath + "/Quests/" + string_0 + ".xml"); string s1 = ""; string s2 = ""; while (xmlTextReader.Read()) { switch (xmlTextReader.NodeType) { case XmlNodeType.Element: s1 = xmlTextReader.Name; string s3 = xmlTextReader.Name; if (Operators.CompareString(s3, "QuestTable", false) == 0) { gclass39 = new GClass38.GClass39(); xmlTextReader.MoveToNextAttribute(); gclass39.method_1(xmlTextReader.Value); goto label_1; } if (Operators.CompareString(s3, "Quest", false) == 0) { gclass41 = new GClass38.GClass41(); goto label_1; } if (Operators.CompareString(s3, "Condition", false) == 0) { s2 = "Condition"; gclass42 = new GClass38.GClass42(); goto label_1; } if (Operators.CompareString(s3, "QuestStart", false) != 0) { goto label_1; } s2 = "QuestStart"; gclass40 = new GClass38.GClass40(); break; case XmlNodeType.Text: string s4 = s1; if (Operators.CompareString(s4, "QuestId", false) == 0) { gclass41.method_1(BitConverter.GetBytes(Conversions.ToInteger(xmlTextReader.Value))); goto label_1; } if (Operators.CompareString(s4, "ConditionId", false) == 0) { gclass42.method_1(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s4, "ConditionType", false) == 0) { gclass42.method_3(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s4, "MapId", false) == 0) { string s5 = s2; if (Operators.CompareString(s5, "Condition", false) == 0) { gclass42.method_5(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s5, "QuestStart", false) != 0) { goto label_1; } gclass40.method_3(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s4, "PositionX", false) == 0) { string s6 = s2; if (Operators.CompareString(s6, "Condition", false) == 0) { gclass42.method_7(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s6, "QuestStart", false) != 0) { goto label_1; } gclass40.method_5(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s4, "PositionY", false) != 0) { goto label_1; } string s7 = s2; if (Operators.CompareString(s7, "Condition", false) == 0) { gclass42.method_9(Conversions.ToInteger(xmlTextReader.Value)); goto label_1; } if (Operators.CompareString(s7, "QuestStart", false) != 0) { goto label_1; } gclass40.method_7(Conversions.ToInteger(xmlTextReader.Value)); break; case XmlNodeType.EndElement: string s8 = xmlTextReader.Name; if (Operators.CompareString(s8, "QuestTable", false) == 0) { list.Add(gclass39); goto label_1; } if (Operators.CompareString(s8, "Quest", false) == 0) { gclass39.method_2().Add(gclass41); goto label_1; } if (Operators.CompareString(s8, "Condition", false) == 0) { gclass41.method_4().Add(gclass42); goto label_1; } if (Operators.CompareString(s8, "QuestStart", false) != 0) { goto label_1; } gclass41.method_3(gclass40); break; case XmlNodeType.Attribute: case XmlNodeType.CDATA: case XmlNodeType.EntityReference: case XmlNodeType.Entity: case XmlNodeType.ProcessingInstruction: case XmlNodeType.Comment: case XmlNodeType.Document: case XmlNodeType.DocumentType: case XmlNodeType.DocumentFragment: case XmlNodeType.Notation: case XmlNodeType.Whitespace: case XmlNodeType.SignificantWhitespace: label_1: Thread.Sleep(5); break; } } return(list); }