C_ToyBoxInfo
namespaceavailable in: camelotStatus in wowlua
6 functions: 3 implemented, 0 recorded, 3 guessed. 2 events, 1 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
ClearFanfare | Clears a fanfare for a toy.(itemID: number) | implemented |
HasAnyToy | Whether the player has collected any toy. · by wowlua(): boolean | implemented |
IsToySourceValid | Whether the given source type is a valid toy source for the toy box filter. · by wowlua(source: number): boolean | guessed |
IsUsingDefaultFilters | Whether the toy box filters are at their defaults. · by wowlua(): boolean | guessed |
NeedsFanfare | Returns whether a toy needs a fanfare.(itemID: number): boolean | implemented |
SetDefaultFilters | Resets the toy box filters to their defaults. · by wowlua() | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
NEW_TOY_ADDED | itemID: number | not implemented |
TOYS_UPDATED | itemID: number?, isNew: boolean?, hasFanfare: boolean? | implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("NEW_TOY_ADDED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (ToyBoxInfo system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.