示例#1
0
 internal static void SendMovementUpdate(IntPtr parPlayerPtr, int parTimeStamp, int parOpcode)
 {
     if (SendMovementUpdateFunction == null)
     {
         SendMovementUpdateFunction = Memory.Reader.RegisterDelegate <SendMovementUpdateDelegate>((IntPtr)Constants.Offsets.Functions.SendMovementPacket);
     }
     SendMovementUpdateFunction(parPlayerPtr, parTimeStamp, parOpcode, 0, 0);
 }
示例#2
0
        internal static void SendMovementUpdate(IntPtr parPlayerPtr, int parTimeStamp, int parOpcode)
        {
            if (!ObjectManager.Instance.IsIngame)
            {
                return;
            }
            if (SendMovementUpdateFunction == null)
            {
                SendMovementUpdateFunction =
                    Memory.Reader.RegisterDelegate <SendMovementUpdateDelegate>(funcs.SendMovementPacket);
            }

            MainThread.Instance.Invoke(() => SendMovementUpdateFunction(parPlayerPtr, parTimeStamp, parOpcode, 0, 0));
        }