World of Warcraft Forever API · C_HouseEditor.md, for your AI
C_HouseEditor
10 functions, 3 events, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_HouseEditor.ActivateHouseEditorMode
result = C_HouseEditor.ActivateHouseEditorMode(editMode)
Attempts switch the House Editor to a specific House Editor mode
Arguments
editMode | HouseEditorMode |
|---|
Returns
result | HousingResult | The initial result of the attempt to activate the mode; If Success, mode is either already active, or we've succesfully started making required requests to server; Listen for MODE_CHANGED or MODE_CHANGE_FAILURE events for ultimate end result after server calls |
|---|
C_HouseEditor.EnterHouseEditor
result = C_HouseEditor.EnterHouseEditor()
Attempts to open the House Editor to the default House Editor mode
Returns
result | HousingResult | The initial result of the attempt to open the Editor; If Success, Editor is either already active, or we've succesfully started making required requests to server; Listen for MODE_CHANGED or MODE_CHANGE_FAILURE events for ultimate end result after server calls |
|---|
C_HouseEditor.GetActiveHouseEditorMode
editMode = C_HouseEditor.GetActiveHouseEditorMode()
Returns
editMode | HouseEditorMode |
|---|
C_HouseEditor.GetHouseEditorAvailability
result = C_HouseEditor.GetHouseEditorAvailability()
Returns the availability state of the House Editor overall
Returns
result | HousingResult |
|---|
C_HouseEditor.GetHouseEditorModeAvailability
result = C_HouseEditor.GetHouseEditorModeAvailability(editMode)
Returns the availability of a specific House Editor mode
Arguments
editMode | HouseEditorMode |
|---|
Returns
result | HousingResult |
|---|
C_HouseEditor.GetHouseEditorPlayerType
playerType = C_HouseEditor.GetHouseEditorPlayerType()
Returns
playerType | HouseEditorPlayerType |
|---|
C_HouseEditor.IsHouseEditorActive
isEditorActive = C_HouseEditor.IsHouseEditorActive()
Returns whether the House Editor is active, in any mode
Returns
isEditorActive | bool |
|---|
C_HouseEditor.IsHouseEditorModeActive
isModeActive = C_HouseEditor.IsHouseEditorModeActive(editMode)
Returns whether the specific House Editor mode is active
Arguments
editMode | HouseEditorMode |
|---|
Returns
isModeActive | bool |
|---|
C_HouseEditor.IsHouseEditorStatusAvailable
editorStatusAvailable = C_HouseEditor.IsHouseEditorStatusAvailable()
Returns true if the HouseEditor currently able process mode availability and switching; May be false if not in a house or plot, or while waiting to get house settings back from the server
Returns
editorStatusAvailable | bool |
|---|
C_HouseEditor.LeaveHouseEditor
C_HouseEditor.LeaveHouseEditor()
Events
HOUSE_EDITOR_AVAILABILITY_CHANGED
No payload.
HOUSE_EDITOR_MODE_CHANGE_FAILURE
result | HousingResult |
|---|
HOUSE_EDITOR_MODE_CHANGED
currentEditMode | HouseEditorMode |
|---|
Tables
Enum.HouseEditorPlayerType enumeration
None | 0 |
|---|---|
Owner | 1 |
Visitor | 2 |