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
info | HousingDecorInstanceInfo 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
info | HousingDecorInstanceInfo may be nil |
|---|
C_HousingBasicMode.IsDecorSelected
hasSelectedDecor = C_HousingBasicMode.IsDecorSelected()
Returns true if a decor instance is currently selected and being dragged
Returns
hasSelectedDecor | bool |
|---|
C_HousingBasicMode.IsFreePlaceEnabled
freePlaceEnabled = C_HousingBasicMode.IsFreePlaceEnabled()
When free place is enabled, collision checks while dragging decor/the house exterior are ignored
Returns
freePlaceEnabled | bool |
|---|
C_HousingBasicMode.IsGridSnapEnabled
isGridSnapEnabled = C_HousingBasicMode.IsGridSnapEnabled()
Returns
isGridSnapEnabled | bool |
|---|
C_HousingBasicMode.IsGridVisible
gridVisible = C_HousingBasicMode.IsGridVisible()
Returns
gridVisible | bool |
|---|
C_HousingBasicMode.IsHouseExteriorHovered
isHouseExteriorHovered = C_HousingBasicMode.IsHouseExteriorHovered()
Returns true if the house's exterior is currently being hovered
Returns
isHouseExteriorHovered | bool |
|---|
C_HousingBasicMode.IsHouseExteriorSelected
isHouseExteriorSelected = C_HousingBasicMode.IsHouseExteriorSelected()
Returns true if the house's exterior is currently selected and being moved
Returns
isHouseExteriorSelected | bool |
|---|
C_HousingBasicMode.IsHoveringDecor
isHoveringDecor = C_HousingBasicMode.IsHoveringDecor()
Returns true if a placed decor instance is currently being hovered
Returns
isHoveringDecor | bool |
|---|
C_HousingBasicMode.IsPlacingNewDecor
hasPendingDecor = C_HousingBasicMode.IsPlacingNewDecor()
Returns
hasPendingDecor | bool |
|---|
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
rotDegrees | number |
|---|
C_HousingBasicMode.RotateHouseExterior
C_HousingBasicMode.RotateHouseExterior(rotDegrees)
Rotates the House Exterior around the Z (vertical) axis
Arguments
rotDegrees | number |
|---|
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
freePlaceEnabled | bool |
|---|
C_HousingBasicMode.SetGridSnapEnabled
C_HousingBasicMode.SetGridSnapEnabled(isGridSnapEnabled)
Arguments
isGridSnapEnabled | bool |
|---|
C_HousingBasicMode.SetGridVisible
C_HousingBasicMode.SetGridVisible(gridVisible)
Arguments
gridVisible | bool |
|---|
C_HousingBasicMode.StartPlacingNewDecor
C_HousingBasicMode.StartPlacingNewDecor(catalogEntryVariantID)
Arguments
catalogEntryVariantID | HousingCatalogEntryVariantID |
|---|
C_HousingBasicMode.StartPlacingPreviewDecor
C_HousingBasicMode.StartPlacingPreviewDecor(decorRecordID, [bundleCatalogShopProductID])
Arguments
decorRecordID | number | |
|---|---|---|
bundleCatalogShopProductID | number may be nil |
Events
HOUSING_BASIC_MODE_HOVERED_TARGET_CHANGED
hasHoveredTarget | bool | |
|---|---|---|
targetType | HousingBasicModeTargetType |
HOUSING_BASIC_MODE_PLACEMENT_FLAGS_UPDATED
targetType | HousingBasicModeTargetType | |
|---|---|---|
activeFlags | HousingDecorPlacementRestriction |
HOUSING_BASIC_MODE_SELECTED_TARGET_CHANGED
hasSelectedTarget | bool | |
|---|---|---|
targetType | HousingBasicModeTargetType | |
isPreview | bool |
HOUSING_DECOR_FREE_PLACE_STATUS_CHANGED
isFreePlaceEnabled | bool |
|---|
HOUSING_DECOR_GRID_SNAP_OCCURRED
No payload.
HOUSING_DECOR_GRID_SNAP_STATUS_CHANGED
isGridSnapEnabled | bool |
|---|
Tables
Enum.HousingBasicModeTargetType enumeration
None | 0 |
|---|---|
Decor | 1 |
House | 2 |