WowAddons

World of Warcraft Forever API · C_HousingBasicMode.md, for your AI

C_HousingBasicMode

22 functions, 6 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_HousingBasicMode.CancelActiveEditing

C_HousingBasicMode.CancelActiveEditing()

Cancels all in-progress editing of the selected target, which will reset any unsaved changes and deselect the active target; Un-placed decor will be returned to the house chest

C_HousingBasicMode.CommitDecorMovement

C_HousingBasicMode.CommitDecorMovement()

Attempt to save the changes made to the currently selected decor instance

C_HousingBasicMode.CommitHouseExteriorPosition

C_HousingBasicMode.CommitHouseExteriorPosition()

Attempt to save the changes made to the House Exterior's position within the plot

C_HousingBasicMode.FinishPlacingNewDecor

C_HousingBasicMode.FinishPlacingNewDecor()

C_HousingBasicMode.GetHoveredDecorInfo

info = C_HousingBasicMode.GetHoveredDecorInfo()

Returns info for the placed decor instance currently being hovered, if there is one

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingBasicMode.GetSelectedDecorInfo

info = C_HousingBasicMode.GetSelectedDecorInfo()

Returns info for the decor instance that's currently selected, if there is one

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingBasicMode.IsDecorSelected

hasSelectedDecor = C_HousingBasicMode.IsDecorSelected()

Returns true if a decor instance is currently selected and being dragged

Returns

hasSelectedDecorbool

C_HousingBasicMode.IsFreePlaceEnabled

freePlaceEnabled = C_HousingBasicMode.IsFreePlaceEnabled()

When free place is enabled, collision checks while dragging decor/the house exterior are ignored

Returns

freePlaceEnabledbool

C_HousingBasicMode.IsGridSnapEnabled

isGridSnapEnabled = C_HousingBasicMode.IsGridSnapEnabled()

Returns

isGridSnapEnabledbool

C_HousingBasicMode.IsGridVisible

gridVisible = C_HousingBasicMode.IsGridVisible()

Returns

gridVisiblebool

C_HousingBasicMode.IsHouseExteriorHovered

isHouseExteriorHovered = C_HousingBasicMode.IsHouseExteriorHovered()

Returns true if the house's exterior is currently being hovered

Returns

isHouseExteriorHoveredbool

C_HousingBasicMode.IsHouseExteriorSelected

isHouseExteriorSelected = C_HousingBasicMode.IsHouseExteriorSelected()

Returns true if the house's exterior is currently selected and being moved

Returns

isHouseExteriorSelectedbool

C_HousingBasicMode.IsHoveringDecor

isHoveringDecor = C_HousingBasicMode.IsHoveringDecor()

Returns true if a placed decor instance is currently being hovered

Returns

isHoveringDecorbool

C_HousingBasicMode.IsPlacingNewDecor

hasPendingDecor = C_HousingBasicMode.IsPlacingNewDecor()

Returns

hasPendingDecorbool

C_HousingBasicMode.RemoveSelectedDecor

C_HousingBasicMode.RemoveSelectedDecor()

Attempt to return the currently selected decor instance back to the house chest

C_HousingBasicMode.RotateDecor

C_HousingBasicMode.RotateDecor(rotDegrees)

Rotates the currently selected decor along a single axis; For wall decor, rotates such that the object stays flat against its current wall; For all other decor, rotates around the Z (vertical) axis

Arguments

rotDegreesnumber

C_HousingBasicMode.RotateHouseExterior

C_HousingBasicMode.RotateHouseExterior(rotDegrees)

Rotates the House Exterior around the Z (vertical) axis

Arguments

rotDegreesnumber

C_HousingBasicMode.SetFreePlaceEnabled

C_HousingBasicMode.SetFreePlaceEnabled(freePlaceEnabled)

Set whether free place is enabled; When free place is enabled, collision checks while dragging decor/the house exterior are ignored

Arguments

freePlaceEnabledbool

C_HousingBasicMode.SetGridSnapEnabled

C_HousingBasicMode.SetGridSnapEnabled(isGridSnapEnabled)

Arguments

isGridSnapEnabledbool

C_HousingBasicMode.SetGridVisible

C_HousingBasicMode.SetGridVisible(gridVisible)

Arguments

gridVisiblebool

C_HousingBasicMode.StartPlacingNewDecor

C_HousingBasicMode.StartPlacingNewDecor(catalogEntryVariantID)

Arguments

catalogEntryVariantIDHousingCatalogEntryVariantID

C_HousingBasicMode.StartPlacingPreviewDecor

C_HousingBasicMode.StartPlacingPreviewDecor(decorRecordID, [bundleCatalogShopProductID])

Arguments

decorRecordIDnumber
bundleCatalogShopProductIDnumber may be nil

Events

HOUSING_BASIC_MODE_HOVERED_TARGET_CHANGED

hasHoveredTargetbool
targetTypeHousingBasicModeTargetType

HOUSING_BASIC_MODE_PLACEMENT_FLAGS_UPDATED

targetTypeHousingBasicModeTargetType
activeFlagsHousingDecorPlacementRestriction

HOUSING_BASIC_MODE_SELECTED_TARGET_CHANGED

hasSelectedTargetbool
targetTypeHousingBasicModeTargetType
isPreviewbool

HOUSING_DECOR_FREE_PLACE_STATUS_CHANGED

isFreePlaceEnabledbool

HOUSING_DECOR_GRID_SNAP_OCCURRED

No payload.

HOUSING_DECOR_GRID_SNAP_STATUS_CHANGED

isGridSnapEnabledbool

Tables

Enum.HousingBasicModeTargetType enumeration

None0
Decor1
House2

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows