C_BarberShop
namespaceavailable in: camelotStatus in wowlua
29 functions: 0 implemented, 0 recorded, 29 guessed. 7 events, 0 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
ApplyCustomizationChoices | Submits chosen barber shop customizations to the server for application.(): boolean | guessed |
Cancel | Dismisses the barber shop UI, cancelling all customizations.() | guessed |
ClearPreviewChoices | Clears all actively previewed customization choices on the character.(clearSavedChoices: boolean) | guessed |
GetAvailableCustomizations | Returns the customization categories, with their options and choices, offered at the barber shop. · by wowlua(): CharCustomizationCategory[]? | guessed |
GetCurrentCameraZoom | Returns the current camera zoom level.(): number | guessed |
GetCurrentCharacterData | Returns information about the character being customized at the barber shop. · by wowlua(): PlayerInfoCharacterData? | guessed |
GetCurrentCost | Returns the cost of the currently selected customizations.(): number | guessed |
GetViewingChrModel | Returns the ID of the character model shown at the barber shop, or nil. · by wowlua(): number? | guessed |
HasAlteredForm | Whether the character has an alternate form (such as a worgen's human form) at the barber shop. · by wowlua(): boolean | guessed |
HasAnyChanges | Whether any customization has been changed at the barber shop. · by wowlua(): boolean | guessed |
HasCustomizationFeature | Whether the character model has the given customization feature. · by wowlua(featureMask: ChrModelFeatureFlags): boolean | guessed |
IsViewingAlteredForm | Returns true if the player is currently customizing an alternate form.(): boolean | guessed |
MarkCustomizationChoiceAsSeen | Marks a new customization choice as seen, so it is no longer highlighted. · by wowlua(choiceID: number) | guessed |
MarkCustomizationOptionAsSeen | Marks a new customization option as seen, so it is no longer highlighted. · by wowlua(optionID: number) | guessed |
PreviewCustomizationChoice | Previews a customization choice on the character without selecting it.(optionID: number, choiceID: number) | guessed |
RandomizeCustomizationChoices | Picks random choices for the character's customizations at the barber shop. · by wowlua() | guessed |
ResetCameraRotation | Resets the camera rotation.() | guessed |
ResetCustomizationChoices | Resets all selected customization choices.() | guessed |
RotateCamera | Rotates the camera by the specified number of degrees.(diffDegrees: number) | guessed |
SaveSeenChoices | Saves which customization choices have been seen. · by wowlua() | guessed |
SetCameraDistanceOffset | Sets the distance offset of the camera.(offset: number) | guessed |
SetCameraZoomLevel | Sets the zoom level of the camera.(zoomLevel: number, keepCustomZoom: boolean?) | guessed |
SetCustomizationChoice | Selects a customization choice.(optionID: number, choiceID: number) | guessed |
SetModelDressState | Controls whether or not the character should be dressed.(dressedState: boolean) | guessed |
SetSelectedSex | Changes the selected gender of the character.(sex: UnitSex) | guessed |
SetViewingAlteredForm | Controls whether the alternate form for a character is being customized.(isViewingAlteredForm: boolean) | guessed |
SetViewingChrModel | Sets the character model, or shapeshift form, shown at the barber shop. · by wowlua(chrModelID: number?, spellShapeshiftFormID: number?) | guessed |
SetViewingShapeshiftForm | Changes the shapeshift form being customized. Set to nil to revert to customizing the characters' normal form.(shapeshiftFormID: number?) | guessed |
ZoomCamera | Zooms the camera by a specifed amount.(zoomAmount: number) | 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 |
|---|---|---|
BARBER_SHOP_APPEARANCE_APPLIED | no payload | not implemented |
BARBER_SHOP_CAMERA_VALUES_UPDATED | no payload | not implemented |
BARBER_SHOP_CLOSE | no payload | not implemented |
BARBER_SHOP_COST_UPDATE | no payload | not implemented |
BARBER_SHOP_FORCE_CUSTOMIZATIONS_UPDATE | no payload | not implemented |
BARBER_SHOP_OPEN | no payload | not implemented |
BARBER_SHOP_RESULT | success: boolean | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("BARBER_SHOP_APPEARANCE_APPLIED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (BarberShop 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.