C_RestrictedActions
namespaceavailable in: camelotStatus in wowlua
3 functions: 3 implemented, 0 recorded, 0 guessed. 5 events, 3 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
CheckAllowProtectedFunctions | Returns true if the calling context has permissions to call protected functions on the supplied object.(object: FrameScriptObject, silent: boolean): boolean | implemented |
GetAddOnRestrictionState | Returns the current state of an addon restriction type.(type: AddOnRestrictionType): AddOnRestrictionState | implemented |
IsAddOnRestrictionActive | Returns true if an addon restriction type is in an active state. During dispatch of ADDON_RESTRICTION_STATE_CHANGED, this will always return false for the restriction type the event fired for.(type: AddOnRestrictionType): boolean | implemented |
Events
| event | payload | fired by the emulator |
|---|---|---|
ADDON_ACTION_BLOCKED | isTainted: string, function: string | implemented |
ADDON_ACTION_FORBIDDEN | isTainted: string, function: string | implemented |
ADDON_RESTRICTION_STATE_CHANGED | type: AddOnRestrictionType, state: AddOnRestrictionState | implemented |
MACRO_ACTION_BLOCKED | function: string | not implemented |
MACRO_ACTION_FORBIDDEN | function: string | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("MACRO_ACTION_BLOCKED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (RestrictedActions system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.