Exemple #1
0
 private void a(object A_0, CreateObjectEventArgs A_1)
 {
     try
     {
         if (A_1.get_New().get_ObjectClass() == 0x1b)
         {
             CoordsObject obj2 = A_1.get_New().Coordinates();
             dz           dz   = dz.a(obj2.get_EastWest(), obj2.get_NorthSouth(), 0.0);
             if (this.e.ContainsKey(A_1.get_New().get_Id()) && (dz.a(this.e[A_1.get_New().get_Id()].l, false) > 0.004167))
             {
                 this.e.Remove(A_1.get_New().get_Id());
             }
             if (!this.e.ContainsKey(A_1.get_New().get_Id()))
             {
                 b5.a a = new b5.a {
                     l = dz,
                     h = A_1.get_New().get_Name() == ("Corpse of " + CoreManager.get_Current().get_CharacterFilter().get_Name())
                 };
                 this.e.Add(A_1.get_New().get_Id(), a);
                 PluginCore.cq.u.a(A_1.get_New().get_Id(), b0.a.c);
             }
             else
             {
                 this.e[A_1.get_New().get_Id()].d = DateTimeOffset.Now;
                 this.e[A_1.get_New().get_Id()].a = false;
             }
         }
     }
     catch (Exception exception)
     {
         ad.a(exception);
     }
 }
Exemple #2
0
 public void a(bool A_0)
 {
     if (A_0 != this.e)
     {
         this.e = A_0;
         if (A_0)
         {
             this.b = ff.f(PluginCore.cq.ax, "uTank2.Debug.DebugUI.xml");
             this.c = (IList)this.b["lRefcounts"];
             this.d = new e3();
             this.d.a(new EventHandler(this.a));
             this.d.a(0x42d);
             this.d.d();
         }
         else
         {
             this.d.f();
             this.d.b(new EventHandler(this.a));
             this.d = null;
             this.c = null;
             this.b.Dispose();
             this.b = null;
         }
     }
 }
Exemple #3
0
 public ei(dv A_0, cj A_1)
 {
     A_0.b(new dv.c(this.a));
     PluginCore.PC.a(new uTank2.PluginCore.a(this.a));
     this.i = new e3();
     this.i.a(0xdac);
     this.i.a(new EventHandler(this.a));
     this.i.d();
 }
Exemple #4
0
    public static void a(PluginCore.EmptyDelegate A_0, int A_1)
    {
        e3 item = new e3();

        a.Add(item);
        b.Add(A_0);
        item.a(A_1);
        item.a(new EventHandler(b8.a));
        item.d();
    }
Exemple #5
0
    private static void a(object A_0, EventArgs A_1)
    {
        c = (e3)A_0;
        int index = a.FindIndex(new Predicate <e3>(b8.a));

        c.f();
        b[index]();
        a.RemoveAt(index);
        b.RemoveAt(index);
    }
Exemple #6
0
    public static void a(ae.a A_0, int A_1)
    {
        e3 item = new e3();

        a.Add(item);
        b.Add(A_0);
        c.Add(e3.b());
        item.a(A_1);
        item.a(new EventHandler(ae.a));
        item.d();
    }
Exemple #7
0
 public dr(int A_0, int A_1)
 {
     this.d = 0x7d0;
     this.e = TimeSpan.FromSeconds(3.0);
     this.f = new e3();
     this.f.a(A_1);
     this.f.a(new EventHandler(this.b));
     this.g = new e3();
     this.g.a(A_0);
     this.g.a(new EventHandler(this.a));
 }
Exemple #8
0
 public dr()
 {
     this.d = 0x7d0;
     this.e = TimeSpan.FromSeconds(3.0);
     this.f = new e3();
     this.f.a(0x7cd);
     this.f.a(new EventHandler(this.b));
     this.g = new e3();
     this.g.a(0x31d);
     this.g.a(new EventHandler(this.a));
 }
Exemple #9
0
    public static void a(bt.a A_0, int A_1, object A_2)
    {
        e3 item = new e3();

        a.Add(item);
        b.Add(A_0);
        c.Add(e3.b());
        d.Add(A_2);
        item.a(A_1);
        item.a(new EventHandler(bt.a));
        item.d();
    }
Exemple #10
0
 public cj(cj.a A_0, HooksWrapper A_1)
 {
     this.q = A_0;
     CoreManager.get_Current().get_EchoFilter().add_ServerDispatch(new EventHandler <NetworkMessageEventArgs>(this.b));
     CoreManager.get_Current().add_ItemDestroyed(new EventHandler <ItemDestroyedEventArgs>(this.a));
     CoreManager.get_Current().get_EchoFilter().add_ClientDispatch(new EventHandler <NetworkMessageEventArgs>(this.a));
     this.s = A_1;
     this.r = new e3();
     this.r.a(new EventHandler(this.a));
     this.r.a(0x17f3);
     this.r.a(true);
 }
Exemple #11
0
 public void a()
 {
     if (!this.c)
     {
         this.c = true;
         GC.SuppressFinalize(this);
         if (this.a != null)
         {
             this.a.e();
             this.a = null;
         }
     }
 }
 internal cLogic(dv A_0, PluginCore A_1, s A_2)
 {
     this.c = A_1;
     this.f = new e3();
     A_0.a(new dv.b(this.a));
     A_0.b(new dv.a(this.a));
     A_2.a(new s.a(this.a));
     A_2.b(new s.c(this.a));
     this.f.a(new EventHandler(this.b));
     this.g = new e3();
     this.g.a(new EventHandler(this.a));
     this.g.a(0xc83);
     PluginCore.PC.b(new PluginCore.EmptyDelegate(this.a));
 }
Exemple #13
0
 public void c()
 {
     if (!this.c)
     {
         this.c = true;
         GC.SuppressFinalize(this);
         if (this.a != null)
         {
             this.a.e();
             this.a = null;
         }
         PluginCore.PC.a(new PluginCore.EmptyDelegate(this.b));
     }
 }
Exemple #14
0
    private static void a(object A_0, EventArgs A_1)
    {
        d = (e3)A_0;
        int index = a.FindIndex(new Predicate <e3>(ae.a));

        if (c[index] != e3.b())
        {
            d.f();
            b[index]();
            d.e();
            a.RemoveAt(index);
            b.RemoveAt(index);
            c.RemoveAt(index);
        }
    }
Exemple #15
0
 public void a()
 {
     if (!this.e)
     {
         this.e = true;
         GC.SuppressFinalize(this);
         if (this.c != null)
         {
             this.c.e();
             this.c = null;
         }
         this.a.b(new cj.c(this.b));
         this.a.a(new cj.c(this.a));
         this.a = null;
     }
 }
Exemple #16
0
 public void c()
 {
     if (!this.a)
     {
         this.a = true;
         GC.SuppressFinalize(this);
         PluginCore.cq.aw.get_EchoFilter().remove_ClientDispatch(new EventHandler <NetworkMessageEventArgs>(this.a));
         PluginCore.cq.aw.remove_ChatBoxMessage(new EventHandler <ChatTextInterceptEventArgs>(this.a));
         PluginCore.cq.aw.remove_WindowMessage(new EventHandler <WindowMessageEventArgs>(this.a));
         this.d.b(new EventHandler(this.a));
         if (this.d != null)
         {
             this.d.e();
         }
         this.d = null;
     }
 }
Exemple #17
0
        public SpeedLimitQueue(int A_0, int A_1)
        {
            this.c = new e3();
            this.d = new Queue <T>();
            this.e = new Queue <DateTimeOffset>();
            this.a = A_0;
            this.b = A_1;
            this.c.a(new EventHandler(this.a));
            int num = this.b / (this.a * 2);

            if (num < 1)
            {
                num = 1;
            }
            this.c.a(num);
            this.c.d();
        }
Exemple #18
0
 public virtual void a()
 {
     if (!this.a)
     {
         this.a = true;
         this.f.a(false);
         this.f.b(new EventHandler(this.b));
         this.g.a(false);
         this.g.b(new EventHandler(this.a));
         if (this.f != null)
         {
             this.f.e();
         }
         if (this.g != null)
         {
             this.g.e();
         }
         this.f = null;
         this.g = null;
     }
 }
 public void Dispose()
 {
     if (!this.i)
     {
         this.i = true;
         this.f.b(new EventHandler(this.b));
         if (this.f != null)
         {
             this.f.e();
         }
         this.f = null;
         if (this.g != null)
         {
             this.g.e();
         }
         this.g = null;
         this.c = null;
         foreach (ILogicRule rule in this.l)
         {
             rule.Dispose();
         }
         GC.SuppressFinalize(this);
     }
 }
Exemple #20
0
 private static bool a(e3 A_0)
 {
     return(A_0 == e);
 }