Exemple #1
0
 public c00026a()
     : base(1, 0xe100)
 {
     this.f000001 = enum026b.f000001;
     this.f00005b = new List<byte>();
 }
Exemple #2
0
        protected override void m0002cc(byte[] p0, int p1)
        {
            if ((base.m00009d() != c000204.enum0205.f000086) && (base.m00009d() != c000204.enum0205.f000001))
            {
                if (GameSetting.Instance().IsShowLog())
                {
                    string str = "Read CommPort Data : ";
                    for (int j = 0; j < p1; j++)
                    {
                        str = str + p0[j].ToString("X2") + " ";
                    }
                    SenseKeyHelper.m00030d("OnlyControllerPort ", str);
                }
                for (int i = 0; i < p1; i++)
                {
                    int num5;
                    byte item = p0[i];
                    switch (this.f000001)
                    {
                        case enum026b.f000001:
                            if (item == 0x55)
                            {
                                this.f000001 = enum026b.f000043;
                            }
                            if (GameSetting.Instance().IsShowLog() && (this.f00005b.Count > 0))
                            {
                                string str2 = "Last Command Data When Header1 : ";
                                foreach (byte num4 in this.f00005b)
                                {
                                    str2 = str2 + num4.ToString("X2") + " ";
                                }
                                SenseKeyHelper.m00030d("OnlyControllerPort ", str2);
                            }
                            goto Label_025B;

                        case enum026b.f000043:
                            if (item != 170)
                            {
                                break;
                            }
                            this.f000001 = enum026b.f000044;
                            goto Label_025B;

                        case enum026b.f000044:
                            if (item != 0xee)
                            {
                                goto Label_017D;
                            }
                            this.f000001 = enum026b.f000045;
                            goto Label_025B;

                        case enum026b.f000045:
                            this.f00005b.Clear();
                            this.f00005b.Add(item);
                            this.f000001 = enum026b.f000085;
                            goto Label_025B;

                        case enum026b.f000085:
                            num5 = this.m00031f(this.f00005b[0]);
                            if (num5 >= 0)
                            {
                                goto Label_01D9;
                            }
                            this.f00005b.Add(item);
                            goto Label_01E7;

                        case enum026b.f000086:
                            if ((this.f00005b.Count - 2) != this.f00005b[1])
                            {
                                goto Label_0235;
                            }
                            if (!this.m000320(item))
                            {
                                goto Label_0229;
                            }
                            this.f000001 = enum026b.f000087;
                            goto Label_025B;

                        case enum026b.f000087:
                            if (item == 13)
                            {
                                this.m0000b1();
                            }
                            this.f000001 = enum026b.f000001;
                            goto Label_025B;

                        default:
                            goto Label_025B;
                    }
                    this.f000001 = enum026b.f000001;
                    goto Label_025B;
                Label_017D:
                    this.f000001 = enum026b.f000001;
                    goto Label_025B;
                Label_01D9:
                    this.f00005b.Add((byte) num5);
                Label_01E7:
                    this.f000001 = enum026b.f000086;
                    goto Label_025B;
                Label_0229:
                    this.f000001 = enum026b.f000001;
                    goto Label_025B;
                Label_0235:
                    this.f00005b.Add(item);
                Label_025B:;
                }
            }
        }