C_SwingTimer
namespaceavailable in: camelotStatus in wowlua
2 functions: 0 implemented, 0 recorded, 2 guessed. 2 events, 1 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
EnableRangeCheck | Used in conjunction with PLAYER_SWING_RANGE_UPDATE to inform the UI when the current target goes in or out of auto attack range.(swingType: PlayerSwingType, enable: boolean) | guessed |
IsTargetWithinSwingRange | Whether the current target is within range of the player's auto attack for the given swing type. Auto attacks only ever apply to the current target, so no other unit can be queried.(swingType: PlayerSwingType): boolean? | guessed |
Events
| event | payload | fired by the emulator |
|---|---|---|
PLAYER_SWING | swingDuration: number, swingType: PlayerSwingType | implemented |
PLAYER_SWING_RANGE_UPDATE | swingType: PlayerSwingType, isInRange: boolean, checksRange: boolean | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("PLAYER_SWING_RANGE_UPDATE").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SwingTimer system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.