コード例 #1
0
ファイル: CellClass.cs プロジェクト: Xkein/PatcherYRpp
 public static CoordStruct Cell2Coord(CellStruct cell, int z = 0)
 {
     return(new CoordStruct(cell.X * Game.CellSize + 128, cell.Y * Game.CellSize + 128, z));
 }
コード例 #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));
        }
コード例 #3
0
ファイル: SuperClass.cs プロジェクト: Xkein/PatcherYRpp
        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);
        }
コード例 #4
0
ファイル: SuperClass.cs プロジェクト: Xkein/PatcherYRpp
        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));
        }
コード例 #5
0
ファイル: BasicStructures.cs プロジェクト: Xkein/PatcherYRpp
 public double DistanceFrom(CellStruct other)
 {
     return((other - this).Magnitude());
 }