public void OnPulse() { uint localPlayerPointer = WoWFunctions._getActivePlayer(); if (localPlayerPointer == 0) { return; } LocalPlayer = new WoWLocalPlayer(localPlayerPointer); foreach (var obj in _objects.Values) { obj.Pointer = 0; } WoWFunctions._enumVisibleObjects(_ourCallback, 0); foreach (var pair in _objects.Where(p => p.Value.Pointer == 0).ToList()) { _objects.Remove(pair.Key); } Objects = _objects.Values.ToList(); }
public static void ClickToMove(Location desLocation, ulong interactionGuid, WowClickToMoveType clickType, float presision) { WoWFunctions._TrackingStart(ObjectManager.LocalPlayer.Pointer, (int)clickType, ref interactionGuid, ref desLocation, presision); }