Esempio n. 1
0
 public static CoordStruct Cell2Coord(CellStruct cell, int z = 0)
 {
     return(new CoordStruct(cell.X * Game.CellSize + 128, cell.Y * Game.CellSize + 128, z));
 }
Esempio n. 2
0
        public unsafe bool SpawnAtMapCoords(CellStruct mapCoords, Pointer <HouseClass> pOwner)
        {
            var func = (delegate * unmanaged[Thiscall] < ref ObjectTypeClass, ref CellStruct, IntPtr, Bool >) this.GetVirtualFunctionPointer(32);

            return(func(ref this, ref mapCoords, pOwner));
        }
Esempio n. 3
0
        public unsafe void Launch(CellStruct cell, bool isPlayer)
        {
            var func = (delegate * unmanaged[Thiscall] < ref SuperClass, ref CellStruct, Bool, void >) 0x6CC390;

            func(ref this, ref cell, isPlayer);
        }
Esempio n. 4
0
        public unsafe byte ClickFire(bool isPlayer, CellStruct cell)
        {
            var func = (delegate * unmanaged[Thiscall] < ref SuperClass, Bool, ref CellStruct, byte >) 0x6CB920;

            return(func(ref this, isPlayer, ref cell));
        }
Esempio n. 5
0
 public double DistanceFrom(CellStruct other)
 {
     return((other - this).Magnitude());
 }