Beispiel #1
0
 public void method_6(byte[] byte_0)
 {
     QuestForm.Class21 class21 = new QuestForm.Class21();
     list_1 = new List<QuestForm.GClass36>();
     class21.long_0 = (long)BitConverter.ToInt32(byte_0, 4);
     if (class21.long_0 != 0L)
     {
         GClass38.GClass39 gclass39 = Enumerable.FirstOrDefault<GClass38.GClass39>(list_0, new Func<GClass38.GClass39,bool>(class21, class21.method_0));
         GClass38.GClass41 gclass41 = Enumerable.FirstOrDefault<GClass38.GClass41>(gclass39.method_2(), new Func<GClass38.GClass41,bool>(class21, class21.method_2));
         if (gclass39 != null)
             method_8(gclass39.method_0(), vmethod_22());
         int i3 = checked(BitConverter.ToInt16(byte_0, 10) - 1);
         for (int i1 = 0; i1 <= i3; i1 = checked(i1 + 1))
         {
             QuestForm.Class21.Class22 class22 = new QuestForm.Class21.Class22(class22);
             class22.int_0 = i1;
             GClass38.GClass42 gclass42 = Enumerable.First<GClass38.GClass42>(Enumerable.Where<GClass38.GClass42>(gclass41.method_4(), new Func<GClass38.GClass42,int,bool>(class22, class22.method_0)));
             QuestForm.GClass36 gclass36 = new QuestForm.GClass36();
             gclass36.method_1((long)BitConverter.ToInt16(byte_0, checked(12 + checked(i1 * 8))));
             gclass36.method_3((long)BitConverter.ToInt16(byte_0, checked(checked(12 + checked(i1 * 8)) + 2)));
             gclass36.method_5((long)BitConverter.ToInt16(byte_0, checked(checked(12 + checked(i1 * 8)) + 4)));
             list_1.Add(gclass36);
             method_8(method_9(gclass36, gclass42.method_2()), labelX_5[i1]);
         }
     }
     else
     {
         method_8("Quest Ended", vmethod_22());
         int i2 = 0;
         do
         {
             method_8("", labelX_5[i2]);
             i2 = checked(i2 + 1);
         } while (i2 <= 3);
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public bool method_0(GClass38.GClass42 gclass42_0, int int_1)
 {
     return (gclass42_0.method_4() != 0) & (int_1 == int_0);
 }