v0.13.8

C_RestrictedActions

namespaceavailable in: camelot

Status in wowlua

3 functions: 3 implemented, 0 recorded, 0 guessed. 5 events, 3 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
CheckAllowProtectedFunctionsReturns true if the calling context has permissions to call protected functions on the supplied object.
(object: FrameScriptObject, silent: boolean): boolean
implemented
GetAddOnRestrictionStateReturns the current state of an addon restriction type.
(type: AddOnRestrictionType): AddOnRestrictionState
implemented
IsAddOnRestrictionActiveReturns 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

eventpayloadfired by the emulator
ADDON_ACTION_BLOCKEDisTainted: string, function: stringimplemented
ADDON_ACTION_FORBIDDENisTainted: string, function: stringimplemented
ADDON_RESTRICTION_STATE_CHANGEDtype: AddOnRestrictionType, state: AddOnRestrictionStateimplemented
MACRO_ACTION_BLOCKEDfunction: stringnot implemented
MACRO_ACTION_FORBIDDENfunction: stringnot 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 ↗.