Пример #1
0
        public bool CGPlayer_C__ClickToMoveHandler(IntPtr thisActivePlayerObject, ClickToMoveType clickType, [In] ref Int64 interactGUID,
                                                   [In] ref Vector3 clickPosition, float precision)
        {
            Int64   _interactGUID  = interactGUID;
            Vector3 _clickPosition = clickPosition;

            return(commandQueue.Submit <bool>((() => CGPlayer_C__ClickToMove(thisActivePlayerObject, clickType, ref _interactGUID, ref _clickPosition, precision))));
        }
Пример #2
0
 public void MoveToPosition(WowPosition targetPosition, ClickToMoveType clickToMoveType = ClickToMoveType.Move, float distance = 1.5f)
 {
     TrashMem.Write(OffsetList.StaticClickToMoveX, targetPosition.x);
     TrashMem.Write(OffsetList.StaticClickToMoveY, targetPosition.y);
     TrashMem.Write(OffsetList.StaticClickToMoveZ, targetPosition.z);
     TrashMem.Write(OffsetList.StaticClickToMoveDistance, distance);
     TrashMem.Write(OffsetList.StaticClickToMoveAction, (int)clickToMoveType);
 }
Пример #3
0
        public void ClickToMove(Location target, ClickToMoveType type = ClickToMoveType.Move, ulong guid = 0, float precision = 0.1f)
        {
            if (ClickToMoveFunction == null)
            {
                ClickToMoveFunction =
                    Manager.Memory.RegisterDelegate <ClickToMoveDelegate>((IntPtr)Pointers.LocalPlayer.ClickToMove);
            }

            Helper.ResetHardwareAction();
            ClickToMoveFunction(Pointer, (int)type, ref guid, ref target, 0.1f);
        }
Пример #4
0
        public void ClickToMove(Location target, ClickToMoveType type = ClickToMoveType.Move, ulong guid = 0ul)
        {
            if (ClickToMoveFunction == null)
                ClickToMoveFunction =
                    Manager.Memory.RegisterDelegate<ClickToMoveDelegate>((IntPtr)Pointers.LocalPlayer.ClickToMove);

            Helper.ResetHardwareAction();
            ClickToMoveFunction(Pointer, (int)type, ref guid, ref target, 0.1f);
        }
Пример #5
0
 public void ClickToMove(Location target, ClickToMoveType type = ClickToMoveType.Move, ulong guid = 0ul)
 {
     Helper.ResetHardwareAction();
     ClickToMoveFunction(Pointer, (int)type, ref guid, ref target, 0.1f);
 }
Пример #6
0
 public void InteractWithGuid(ulong guid, ClickToMoveType clickToMoveType = ClickToMoveType.Interact)
 {
     TrashMem.Write(OffsetList.StaticClickToMoveGuid, guid);
     TrashMem.Write(OffsetList.StaticClickToMoveAction, (int)clickToMoveType);
 }
Пример #7
0
 public void ClickToMove(Location target, ClickToMoveType type = ClickToMoveType.Move, ulong guid = 0ul)
 {
     Helper.ResetHardwareAction();
     ClickToMoveFunction(Pointer, (int)type, ref guid, ref target, 0.1f);
 }
Пример #8
0
 public bool CGPlayer_C__ClickToMove(IntPtr thisActivePlayerObject, ClickToMoveType clickType, [In] ref Int64 interactGUID, [In] ref Vector3 clickPosition, float precision) =>
 CGPlayer_C__ClickToMoveEvent?.Invoke(thisActivePlayerObject, clickType, ref interactGUID, ref clickPosition, precision) ?? false;
Пример #9
0
 public void MoveToPosition(WowPosition targetPosition, ClickToMoveType clickToMoveType = ClickToMoveType.Move, float distance = 1.5F)
 {
     // Empty for tests
 }
Пример #10
0
 public void InteractWithGuid(ulong guid, ClickToMoveType clickToMoveType = ClickToMoveType.Interact)
 {
     // Empty for tests
 }