C_PetInfo
namespaceavailable in: camelotStatus in wowlua
14 functions: 2 implemented, 0 recorded, 11 guessed, 1 not implemented. 12 events, 3 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
CanPetEatItem | Whether the hunter's pet can eat the given item. · by wowlua(itemID: number): boolean | guessed |
GetPetFoodTypes | Returns the kinds of food the hunter's pet eats. · by wowlua(): string[] | guessed |
GetPetHappiness | Returns the hunter pet's happiness, the damage it deals in percent, and its loyalty rate. · by wowlua(): (number?, number?, number?) | implemented |
GetPetLoyalty | Returns the name of the hunter pet's loyalty level, or nil without a pet. · by wowlua(): string? | implemented |
GetPetTalentTree | Returns the name of the hunter pet's talent tree, or nil without one. · by wowlua(): stringView? | guessed |
GetPetTamersForMap | Returns the pet battle tamers on the given map. · by wowlua(uiMapID: number): PetTamerMapInfo[] | guessed |
GetPetTrainingPoints | Returns the hunter pet's total and spent training points. · by wowlua(): (number, number) | guessed |
GetPetUIModelSceneID | Returns the ID of the model scene the pet frame uses. · by wowlua(): number | guessed |
GetSpellForPetAction | Returns the spell ID of a pet action, or nil when it has none. · by wowlua(actionID: number): number? | guessed |
IsPetActionPassive | Whether the pet action is passive. · by wowlua(actionID: number): boolean | guessed |
IsPetOrderMoveToPending | No description yet.(): boolean | not implemented |
PetAbandon | Abandons the hunter's pet. · by wowlua(petNumber: number?) | guessed |
PetAssistMode | Sets the pet to assist mode. · by wowlua() | guessed |
PetRename | Renames the hunter's pet. · by wowlua(name: string, petNumber: number?, declensions: string[]?) | 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 |
|---|---|---|
PET_ATTACK_START | no payload | implemented |
PET_ATTACK_STOP | no payload | implemented |
PET_BAR_HIDEGRID | no payload | not implemented |
PET_BAR_SHOWGRID | no payload | not implemented |
PET_BAR_UPDATE_COOLDOWN | no payload | not implemented |
PET_DISMISS_START | delay: number | not implemented |
PET_FORCE_NAME_DECLENSION | name: string, petNumber: number?, declinedName1: string?, declinedName2: string?, declinedName3: string?, declinedName4: string?, declinedName5: string? | not implemented |
PET_ORDER_MOVE_TO_PENDING_CHANGED | isPetOrderMoveToPending: boolean | not implemented |
PET_UI_CLOSE | no payload | not implemented |
RAISED_AS_GHOUL | no payload | not implemented |
UPDATE_POSSESS_BAR | no payload | not implemented |
UPDATE_VEHICLE_ACTIONBAR | no payload | implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("PET_BAR_HIDEGRID").
Structures
PetTamerMapInfo· areaPoiID, position, name, atlasName?, textureIndex?
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (PetInfo system, camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.