예제 #1
0
 public dz b(HooksWrapper A_0)
 {
     float num;
     float num2;
     float num3;
     int num4;
     if (!A_0.IsValidObject(this.k))
     {
         return new dz();
     }
     try
     {
         int num5 = A_0.PhysicsObject(this.k).ToInt32();
         if (num5 == 0)
         {
             return new dz();
         }
         num = num5[0x84];
         num2 = num5[0x88];
         num3 = num5[140];
         num4 = num5[0x4c];
     }
     catch
     {
         return new dz();
     }
     return dz.a(num, num2, num3 / 240f, num4);
 }
예제 #2
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);
 }
예제 #3
0
 public GameObject(int id, string name, int icon, HooksWrapper hooks, Coordinates lastKnownCoords)
 {
     mId   = id;
     mName = name;
     mIcon = icon;
     if (mIcon < 0x6000000)
     {
         mIcon += 0x6000000;
     }
     mHooks           = hooks;
     mLastKnownCoords = lastKnownCoords;
 }
예제 #4
0
 public unsafe void a(HooksWrapper A_0)
 {
     IntPtr ptr = A_0.PhysicsObject(this.k);
     if (ptr != IntPtr.Zero)
     {
         short num = *((short*) (ptr.ToPointer() + 0xa8));
         if ((num & 4) > 0)
         {
             this.l = true;
         }
         else
         {
             this.l = false;
         }
     }
 }
예제 #5
0
    public static sCoord a(int A_0, HooksWrapper A_1)
    {
        if (!PluginCore.cq.ax.get_Actions().IsValidObject(A_0))
        {
            return(sCoord.NoWhere);
        }
        int num = A_1.PhysicsObject(A_0).ToInt32();

        if (num == 0)
        {
            return(sCoord.NoWhere);
        }
        float num2 = num[0x84];
        float num3 = num[0x88];
        float num4 = num[140];
        int   num5 = num[0x4c];

        return(a((double)num2, (double)num3, (double)(num4 / 240f), num5));
    }
예제 #6
0
 public GameObject(int id, string name, int icon, HooksWrapper hooks)
     : this(id, name, icon, hooks, Coordinates.NO_COORDINATES)
 {
 }
예제 #7
0
		public GameObject(int id, string name, int icon, HooksWrapper hooks, Coordinates lastKnownCoords)
		{
			mId = id;
			mName = name;
			mIcon = icon;
			if (mIcon < 0x6000000)
			{
				mIcon += 0x6000000;
			}
			mHooks = hooks;
			mLastKnownCoords = lastKnownCoords;
		}
예제 #8
0
		public GameObject(int id, string name, int icon, HooksWrapper hooks)
			: this(id, name, icon, hooks, Coordinates.NO_COORDINATES) { }