# C_HousingBasicMode: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_HousingBasicMode

## Functions

### C_HousingBasicMode.CancelActiveEditing

```lua
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

```lua
C_HousingBasicMode.CommitDecorMovement()
```

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

### C_HousingBasicMode.CommitHouseExteriorPosition

```lua
C_HousingBasicMode.CommitHouseExteriorPosition()
```

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

### C_HousingBasicMode.FinishPlacingNewDecor

```lua
C_HousingBasicMode.FinishPlacingNewDecor()
```

### C_HousingBasicMode.GetHoveredDecorInfo

```lua
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

```lua
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

```lua
hasSelectedDecor = C_HousingBasicMode.IsDecorSelected()
```

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

Returns:
- `hasSelectedDecor`: bool

### C_HousingBasicMode.IsFreePlaceEnabled

```lua
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

```lua
isGridSnapEnabled = C_HousingBasicMode.IsGridSnapEnabled()
```

Returns:
- `isGridSnapEnabled`: bool

### C_HousingBasicMode.IsGridVisible

```lua
gridVisible = C_HousingBasicMode.IsGridVisible()
```

Returns:
- `gridVisible`: bool

### C_HousingBasicMode.IsHouseExteriorHovered

```lua
isHouseExteriorHovered = C_HousingBasicMode.IsHouseExteriorHovered()
```

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

Returns:
- `isHouseExteriorHovered`: bool

### C_HousingBasicMode.IsHouseExteriorSelected

```lua
isHouseExteriorSelected = C_HousingBasicMode.IsHouseExteriorSelected()
```

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

Returns:
- `isHouseExteriorSelected`: bool

### C_HousingBasicMode.IsHoveringDecor

```lua
isHoveringDecor = C_HousingBasicMode.IsHoveringDecor()
```

Returns true if a placed decor instance is currently being hovered

Returns:
- `isHoveringDecor`: bool

### C_HousingBasicMode.IsPlacingNewDecor

```lua
hasPendingDecor = C_HousingBasicMode.IsPlacingNewDecor()
```

Returns:
- `hasPendingDecor`: bool

### C_HousingBasicMode.RemoveSelectedDecor

```lua
C_HousingBasicMode.RemoveSelectedDecor()
```

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

### C_HousingBasicMode.RotateDecor

```lua
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

```lua
C_HousingBasicMode.RotateHouseExterior(rotDegrees)
```

Rotates the House Exterior around the Z (vertical) axis

Arguments:
- `rotDegrees`: number

### C_HousingBasicMode.SetFreePlaceEnabled

```lua
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

```lua
C_HousingBasicMode.SetGridSnapEnabled(isGridSnapEnabled)
```

Arguments:
- `isGridSnapEnabled`: bool

### C_HousingBasicMode.SetGridVisible

```lua
C_HousingBasicMode.SetGridVisible(gridVisible)
```

Arguments:
- `gridVisible`: bool

### C_HousingBasicMode.StartPlacingNewDecor

```lua
C_HousingBasicMode.StartPlacingNewDecor(catalogEntryVariantID)
```

Arguments:
- `catalogEntryVariantID`: HousingCatalogEntryVariantID

### C_HousingBasicMode.StartPlacingPreviewDecor

```lua
C_HousingBasicMode.StartPlacingPreviewDecor(decorRecordID, [bundleCatalogShopProductID])
```

Arguments:
- `decorRecordID`: number
- `bundleCatalogShopProductID`: number, may be nil

## Events

### HOUSING_BASIC_MODE_HOVERED_TARGET_CHANGED

Payload, after the event's name:
- `hasHoveredTarget`: bool
- `targetType`: HousingBasicModeTargetType

### HOUSING_BASIC_MODE_PLACEMENT_FLAGS_UPDATED

Payload, after the event's name:
- `targetType`: HousingBasicModeTargetType
- `activeFlags`: HousingDecorPlacementRestriction

### HOUSING_BASIC_MODE_SELECTED_TARGET_CHANGED

Payload, after the event's name:
- `hasSelectedTarget`: bool
- `targetType`: HousingBasicModeTargetType
- `isPreview`: bool

### HOUSING_DECOR_FREE_PLACE_STATUS_CHANGED

Payload, after the event's name:
- `isFreePlaceEnabled`: bool

### HOUSING_DECOR_GRID_SNAP_OCCURRED

No payload.

### HOUSING_DECOR_GRID_SNAP_STATUS_CHANGED

Payload, after the event's name:
- `isGridSnapEnabled`: bool

## Tables

### Enum.HousingBasicModeTargetType (enumeration)

- `None` = 0
- `Decor` = 1
- `House` = 2

---
Make an addon with your 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."
