Exemplo n.º 1
0
 public GAttribute12(GEnum0 genum0_1, GEnum1 genum1_1)
 {
     Class13.lOBHd9Nzn7x2T();
     base..ctor();
     this.method_1(genum0_1);
     this.method_3(genum1_1);
 }
Exemplo n.º 2
0
 public GAttribute13(GEnum0 genum0_1, GEnum1 genum1_1)
 {
     Class13.lOBHd9Nzn7x2T();
     base..ctor();
     this.GEnum0_0 = genum0_1;
     this.GEnum1_0 = genum1_1;
 }
Exemplo n.º 3
0
 public GAttribute12(GEnum0 genum0_1, GEnum1 genum1_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor();
     this.method_1(genum0_1);
     this.qOolKaFfsj(genum1_1);
 }
Exemplo n.º 4
0
 public GAttribute13(GEnum0 genum0_1, GEnum1 genum1_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor();
     this.GEnum0_0 = genum0_1;
     this.GEnum1_0 = genum1_1;
 }
Exemplo n.º 5
0
 public GAttribute13(GEnum0 genum0_1, GEnum1 genum1_1)
 {
     // ISSUE: reference to a compiler-generated field
     this.genum0_0 = genum0_1;
     // ISSUE: reference to a compiler-generated field
     this.genum1_0 = genum1_1;
 }
Exemplo n.º 6
0
 // Token: 0x060001D1 RID: 465 RVA: 0x00011430 File Offset: 0x0000F630
 public async void method_0(string string_7, string string_8, bool bool_3, GEnum1 genum1_0)
 {
     try
     {
         this.bool_1 = true;
         if (bool_3 && !this.bool_2)
         {
             this.bool_2 = bool_3;
             this.method_5(string_7, string_8, true, true);
             if (genum1_0 != (GEnum1)5)
             {
                 if (genum1_0 == (GEnum1)6)
                 {
                     this.method_1();
                     TaskAwaiter taskAwaiter = this.method_8(true).GetAwaiter();
                     if (!taskAwaiter.IsCompleted)
                     {
                         await       taskAwaiter;
                         TaskAwaiter taskAwaiter2;
                         taskAwaiter  = taskAwaiter2;
                         taskAwaiter2 = default(TaskAwaiter);
                     }
                     taskAwaiter.GetResult();
                 }
             }
             else
             {
                 TaskAwaiter taskAwaiter = this.method_8(false).GetAwaiter();
                 if (!taskAwaiter.IsCompleted)
                 {
                     await       taskAwaiter;
                     TaskAwaiter taskAwaiter2;
                     taskAwaiter  = taskAwaiter2;
                     taskAwaiter2 = default(TaskAwaiter);
                 }
                 taskAwaiter.GetResult();
             }
             if (this.class14_0 != null)
             {
                 this.class14_0.httpClient_0.Dispose();
             }
             this.cancellationTokenSource_0.Dispose();
             Class130.dictionary_0.Remove((int)this.jtoken_0["id"]);
             MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},false)", this.jtoken_0["id"]));
         }
         else if (!bool_3)
         {
             this.bool_2 = bool_3;
             this.method_5("Stopping...", "orange", true, true);
             this.cancellationTokenSource_0.Cancel();
             this.class14_0.httpClient_0.CancelPendingRequests();
         }
     }
     catch
     {
     }
 }
Exemplo n.º 7
0
        // Token: 0x06000178 RID: 376 RVA: 0x0000CC18 File Offset: 0x0000AE18
        public virtual string ToString()
        {
            StringBuilder stringBuilder  = new StringBuilder();
            StringBuilder stringBuilder2 = new StringBuilder();
            GEnum1        genum          = this.GEnum1_0;

            switch (genum)
            {
            case GEnum1.Integer:
                foreach (byte b in this.Byte_0)
                {
                    stringBuilder2.AppendFormat("{0:X2}", b);
                }
                stringBuilder.Append("\tINTEGER ").Append(stringBuilder2).AppendLine();
                break;

            case GEnum1.BitString:
            case GEnum1.Null:
                break;

            case GEnum1.OctetString:
                foreach (byte b2 in this.Byte_0)
                {
                    stringBuilder2.AppendFormat("{0:X2}", b2);
                }
                stringBuilder.Append("\tOCTETSTRING ").AppendLine(stringBuilder2.ToString());
                break;

            case GEnum1.ObjectIdentifier:
                foreach (byte b3 in this.Byte_0)
                {
                    stringBuilder2.AppendFormat("{0:X2}", b3);
                }
                stringBuilder.Append("\tOBJECTIDENTIFIER ").AppendLine(stringBuilder2.ToString());
                break;

            default:
                if (genum == GEnum1.Sequence)
                {
                    stringBuilder.AppendLine("SEQUENCE {");
                }
                break;
            }
            foreach (GClass12 gclass in this.List_0)
            {
                stringBuilder.Append(gclass.ToString());
            }
            if (this.GEnum1_0 == GEnum1.Sequence)
            {
                stringBuilder.AppendLine("}");
            }
            stringBuilder2.Remove(0, stringBuilder2.Length - 1);
            return(stringBuilder.ToString());
        }
Exemplo n.º 8
0
    protected void method_16(float float_14, Vector2 vector2_1, string string_6, GEnum1 genum1_0, GEnum165 genum165_0 = GEnum165.const_0, bool bool_18 = false, PixelCollider pixelCollider_0 = null, bool bool_19 = false)
    {
        if (currentHealth == 0)
        {
            orig_method_16(float_14, vector2_1, string_6, genum1_0, genum165_0, bool_18, pixelCollider_0, bool_19);
            return;
        }

        float currHP = this.currentHealth;

        orig_method_16(float_14, vector2_1, string_6, genum1_0, genum165_0, bool_18, pixelCollider_0, bool_19);

        float newHP = this.currentHealth;

        float deltaHP = currHP - newHP;

        Vector3 centerPos = this.SpeculativeRigidbody_0.Vector2_4;

        centerPos += this.transform.up;

        if (ETGModGUI.UseDamageIndicators)
        {
            ETGDamageIndicatorGUI.CreateIndicator(centerPos, deltaHP);
            ETGDamageIndicatorGUI.CreateBar(this);
        }
        ETGDamageIndicatorGUI.maxHP[this]     = maximumHealth;
        ETGDamageIndicatorGUI.currentHP[this] = currentHealth;

        ETGDamageIndicatorGUI.UpdateHealthBar(this, deltaHP);

        if (currentHealth == 0)
        {
            ETGDamageIndicatorGUI.toRemoveBars.Add(this);
            ETGDamageIndicatorGUI.maxHP.Remove(this);
            ETGDamageIndicatorGUI.currentHP.Remove(this);
        }
    }
Exemplo n.º 9
0
 public GAttribute13(GEnum1 genum1_1)
 {
     Class13.lOBHd9Nzn7x2T();
     this..ctor((GEnum0)7, genum1_1);
 }
Exemplo n.º 10
0
 protected extern void orig_method_16(float float_14, Vector2 vector2_1, string string_6, GEnum1 genum1_0, GEnum165 genum165_0 = GEnum165.const_0, bool bool_18 = false, PixelCollider pixelCollider_0 = null, bool bool_19 = false);
Exemplo n.º 11
0
        // Token: 0x060001E2 RID: 482 RVA: 0x00012048 File Offset: 0x00010248
        void IAsyncStateMachine.MoveNext()
        {
            int     num2;
            int     num    = num2;
            Class44 @class = this;

            try
            {
                try
                {
                    TaskAwaiter taskAwaiter3;
                    if (num != 0)
                    {
                        if (num != 1)
                        {
                            @class.bool_1 = true;
                            if (bool_3 && [email protected]_2)
                            {
                                @class.bool_2 = bool_3;
                                @class.method_5(string_7, string_8, true, true);
                                GEnum1 genum = genum1_0;
                                if (genum != (GEnum1)5)
                                {
                                    if (genum != (GEnum1)6)
                                    {
                                        goto IL_17B;
                                    }
                                    @class.method_1();
                                    taskAwaiter3 = @class.method_8(true).GetAwaiter();
                                    if (!taskAwaiter3.IsCompleted)
                                    {
                                        num2         = 1;
                                        taskAwaiter2 = taskAwaiter3;
                                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class44.Struct28>(ref taskAwaiter3, ref this);
                                        return;
                                    }
                                }
                                else
                                {
                                    taskAwaiter3 = @class.method_8(false).GetAwaiter();
                                    if (!taskAwaiter3.IsCompleted)
                                    {
                                        num2         = 0;
                                        taskAwaiter2 = taskAwaiter3;
                                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class44.Struct28>(ref taskAwaiter3, ref this);
                                        return;
                                    }
                                    goto IL_174;
                                }
                            }
                            else
                            {
                                if (!bool_3)
                                {
                                    @class.bool_2 = bool_3;
                                    @class.method_5("Stopping...", "orange", true, true);
                                    @class.cancellationTokenSource_0.Cancel();
                                    @class.class14_0.httpClient_0.CancelPendingRequests();
                                    goto IL_1E3;
                                }
                                goto IL_1E3;
                            }
                        }
                        else
                        {
                            taskAwaiter3 = taskAwaiter2;
                            taskAwaiter2 = default(TaskAwaiter);
                            num2         = -1;
                        }
                        taskAwaiter3.GetResult();
                        goto IL_17B;
                    }
                    taskAwaiter3 = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter);
                    num2         = -1;
IL_174:
                    taskAwaiter3.GetResult();
IL_17B:
                    if (@class.class14_0 != null)
                    {
                        @class.class14_0.httpClient_0.Dispose();
                    }
                    @class.cancellationTokenSource_0.Dispose();
                    Class130.dictionary_0.Remove((int)@class.jtoken_0["id"]);
                    MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},false)", @class.jtoken_0["id"]));
                    IL_1E3 :;
                }
                catch
                {
                }
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }
Exemplo n.º 12
0
    // Token: 0x060001DC RID: 476 RVA: 0x0000AC00 File Offset: 0x00008E00
    public GClass14(GEnum1 genum1_0)
    {
        for (;;)
        {
IL_B8:
            this.size_0 = Screen.PrimaryScreen.Bounds.Size;
            for (;;)
            {
IL_AB:
                this.graphicsPath_0 = new GraphicsPath();
                for (;;)
                {
IL_9D:
                    this.rectangle_0 = default(Rectangle);
                    for (;;)
                    {
IL_75:
                        this.double_0 = 2.05 * (double)this.size_0.Width / 2560.0;
                        for (;;)
                        {
                            switch (genum1_0)
                            {
                            case GEnum1.CHAOS:
                                goto IL_D3;

                            case GEnum1.ORDER:
                                goto IL_102;

                            case GEnum1.UNKNOWN:
                                return;

                            default:
                            {
                                uint num;
                                switch ((num = (num * 1130701111u ^ 3141109874u ^ 4012812697u)) % 13u)
                                {
                                case 0u:
                                    goto IL_102;

                                case 2u:
                                    goto IL_9D;

                                case 3u:
                                    goto IL_120;

                                case 4u:
                                case 7u:
                                    goto IL_B8;

                                case 5u:
                                    return;

                                case 6u:
                                    goto IL_D3;

                                case 8u:
                                    goto IL_E2;

                                case 9u:
                                    goto IL_75;

                                case 10u:
                                    goto IL_111;

                                case 11u:
                                    goto IL_AB;

                                case 12u:
                                    continue;
                                }
                                goto Block_1;
                            }
                            }
                        }
                    }
                }
            }
        }
Block_1:
        return;

IL_D3:
        this.double_1 = 1.05;
IL_E2:
        this.double_2 = 3.25;
        this.double_3 = 1.65;
        return;

IL_102:
        this.double_1 = 1.0;
IL_111:
        this.double_2 = 2.0;
IL_120:
        this.double_3 = 2.0;
    }
Exemplo n.º 13
0
 public GAttribute13(GEnum1 genum1_1)
     : this(GEnum0.Default, genum1_1)
 {
 }
Exemplo n.º 14
0
 public static extern IntPtr CreateFile(string string_0, GEnum0 genum0_0, GEnum1 genum1_0, IntPtr intptr_0, GEnum2 genum2_0, uint uint_4, uint uint_5);
Exemplo n.º 15
0
 // Token: 0x060003DA RID: 986 RVA: 0x00003ECE File Offset: 0x000020CE
 public DoPathRename(string path, string newpath, GEnum1 pathtype)
 {
     this.Path     = path;
     this.NewPath  = newpath;
     this.PathType = pathtype;
 }
Exemplo n.º 16
0
        // Token: 0x06000164 RID: 356 RVA: 0x0000C948 File Offset: 0x0000AB48
        public static GClass12 smethod_0(byte[] byte_0)
        {
            GClass12 gclass = new GClass12();

            for (int i = 0; i < byte_0.Length; i++)
            {
                GEnum1 genum = (GEnum1)byte_0[i];
                switch (genum)
                {
                case GEnum1.Integer:
                {
                    gclass.List_0.Add(new GClass12
                        {
                            GEnum1_0 = GEnum1.Integer,
                            Int32_0  = (int)byte_0[i + 1]
                        });
                    byte[] array  = new byte[(int)byte_0[i + 1]];
                    int    length = (i + 2 + (int)byte_0[i + 1] > byte_0.Length) ? (byte_0.Length - (i + 2)) : ((int)byte_0[i + 1]);
                    Array.Copy(byte_0, i + 2, array, 0, length);
                    gclass.List_0[gclass.List_0.Count - 1].Byte_0 = array;
                    i = i + 1 + gclass.List_0[gclass.List_0.Count - 1].Int32_0;
                    break;
                }

                case GEnum1.BitString:
                case GEnum1.Null:
                    break;

                case GEnum1.OctetString:
                {
                    gclass.List_0.Add(new GClass12
                        {
                            GEnum1_0 = GEnum1.OctetString,
                            Int32_0  = (int)byte_0[i + 1]
                        });
                    byte[] array2 = new byte[(int)byte_0[i + 1]];
                    int    length = (i + 2 + (int)byte_0[i + 1] > byte_0.Length) ? (byte_0.Length - (i + 2)) : ((int)byte_0[i + 1]);
                    Array.Copy(byte_0, i + 2, array2, 0, length);
                    gclass.List_0[gclass.List_0.Count - 1].Byte_0 = array2;
                    i = i + 1 + gclass.List_0[gclass.List_0.Count - 1].Int32_0;
                    break;
                }

                case GEnum1.ObjectIdentifier:
                {
                    gclass.List_0.Add(new GClass12
                        {
                            GEnum1_0 = GEnum1.ObjectIdentifier,
                            Int32_0  = (int)byte_0[i + 1]
                        });
                    byte[] array3 = new byte[(int)byte_0[i + 1]];
                    int    length = (i + 2 + (int)byte_0[i + 1] > byte_0.Length) ? (byte_0.Length - (i + 2)) : ((int)byte_0[i + 1]);
                    Array.Copy(byte_0, i + 2, array3, 0, length);
                    gclass.List_0[gclass.List_0.Count - 1].Byte_0 = array3;
                    i = i + 1 + gclass.List_0[gclass.List_0.Count - 1].Int32_0;
                    break;
                }

                default:
                    if (genum == GEnum1.Sequence)
                    {
                        byte[] array4;
                        if (gclass.Int32_0 == 0)
                        {
                            gclass.GEnum1_0 = GEnum1.Sequence;
                            gclass.Int32_0  = byte_0.Length - (i + 2);
                            array4          = new byte[gclass.Int32_0];
                        }
                        else
                        {
                            gclass.List_0.Add(new GClass12
                            {
                                GEnum1_0 = GEnum1.Sequence,
                                Int32_0  = (int)byte_0[i + 1]
                            });
                            array4 = new byte[(int)byte_0[i + 1]];
                        }
                        int num = (array4.Length > byte_0.Length - (i + 2)) ? (byte_0.Length - (i + 2)) : array4.Length;
                        Array.Copy(byte_0, i + 2, array4, 0, array4.Length);
                        gclass.List_0.Add(GClass10.smethod_0(array4));
                        i = i + 1 + (int)byte_0[i + 1];
                    }
                    break;
                }
            }
            return(gclass);
        }
Exemplo n.º 17
0
 // Token: 0x060003D1 RID: 977 RVA: 0x00003E7C File Offset: 0x0000207C
 public DoPathDelete(string path, GEnum1 pathtype)
 {
     this.Path     = path;
     this.PathType = pathtype;
 }
Exemplo n.º 18
0
 public GAttribute12(GEnum1 genum1_1)
 {
     Class13.NP5bWyNzLwONS();
     this..ctor((GEnum0)7, genum1_1);
 }
Exemplo n.º 19
0
 private void method_3(GEnum1 genum1_1)
 {
     this.genum1_0 = genum1_1;
 }
Exemplo n.º 20
0
 private void qOolKaFfsj(GEnum1 genum1_1)
 {
     this.genum1_0 = genum1_1;
 }
Exemplo n.º 21
0
 public GAttribute14(GEnum0 genum0_1, GEnum1 genum1_1)
 {
     this.GEnum0_0 = genum0_1;
     this.GEnum1_0 = genum1_1;
 }