public static CoordStruct Cell2Coord(CellStruct cell, int z = 0) { return(new CoordStruct(cell.X * Game.CellSize + 128, cell.Y * Game.CellSize + 128, z)); }
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)); }
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); }
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)); }
public double DistanceFrom(CellStruct other) { return((other - this).Magnitude()); }