v0.13.8

C_HousingLayout

namespaceavailable in: camelot

Status in wowlua

41 functions: 0 implemented, 0 recorded, 41 guessed. 18 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AnyRoomsOnFloorWhether the house has rooms on the floor. · by wowlua
(floor: number): boolean
guessed
CanSetViewedFloorWhether the floor can be viewed. · by wowlua
(floor: number): boolean
guessed
CancelActiveLayoutEditingCancels the current layout change. · by wowlua
()
guessed
ConfirmStairChoiceConfirms the direction of the stairs being placed. · by wowlua
(choice: HousingLayoutStairDirection?)
guessed
DeselectFloorplanDeselects the selected floorplan. · by wowlua
()
guessed
DeselectRoomOrDoorDeselects the selected room or door. · by wowlua
()
guessed
GetBaseRoomFloorReturns the floor of the house's base room. · by wowlua
(): number
guessed
GetHighestOccupiedFloorIndexReturns the highest floor that has rooms. · by wowlua
(): number
guessed
GetLowestOccupiedFloorIndexReturns the lowest floor that has rooms. · by wowlua
(): number
guessed
GetNumActiveRoomsReturns the number of rooms in the house. · by wowlua
(): number
guessed
GetRoomPlacementBudgetReturns the max room placement budget for the current owned house's interior; Can be increased via house level
(): number?
guessed
GetRoomPlayerIsInReturns the guid of the interior room the player is standing in, or nil if not currently standing in one
(): string?
guessed
GetSelectedBlueprintFloorplanReturns the ID and name of the selected blueprint floorplan. · by wowlua
(): (number?, string?)
guessed
GetSelectedDoorIf a door is selected, returns its component id and the guid of the room it belongs to; Otherwise returns nothing
(): (number?, string?)
guessed
GetSelectedFloorplanReturns the room ID of the selected floorplan, or nothing. · by wowlua
(): number?
guessed
GetSelectedRoomIf a Room is selected, returns the room's guid; Otherwise returns nothing
(): string?
guessed
GetSelectedStairwellRoomCountReturns the number of rooms the selected stairwell connects. · by wowlua
(): number
guessed
GetSpentPlacementBudgetReturns how much of the current owned house's room placement budget has been spent; Different kinds of rooms take up different budget amounts, so this value isn't an individual room count, see GetNumActiveRooms for that
(): number?
guessed
GetViewedFloorReturns the floor being viewed. · by wowlua
(): number
guessed
HasAnySelectionsReturns true if any room, door, or floorplan is currently selected or being dragged
(): boolean
guessed
HasRoomPlacementBudgetReturns whether there's a max room placement budget available and active for the current player, in the current house's interior
(): boolean
guessed
HasSelectedBlueprintFloorplanWhether a blueprint floorplan is selected. · by wowlua
(): boolean
guessed
HasSelectedDoorReturns true if a door component is currently selected
(): boolean
guessed
HasSelectedFloorplanWhether a floorplan is selected. · by wowlua
(): boolean
guessed
HasSelectedRoomReturns true if a room is selected, will NOT return true if a door is selected
(): boolean
guessed
HasStairsWhether the room has stairs. · by wowlua
(roomRecordID: number): boolean
guessed
HasValidConnectionWhether a room's connection point can connect to the given room. · by wowlua
(roomGUID: string, componentID: number, roomId: number): boolean
guessed
IsBaseRoomWhether the room is the house's base room. · by wowlua
(roomGUID: string): boolean
guessed
IsDraggingRoomWhether a room is being dragged, and a second flag about the drag. · by wowlua
(): (boolean, boolean)
guessed
MoveDraggedRoomAttempt to move the room currently being dragged to a specific connection point on a specific other room
(sourceDoorIndex: number, destRoom: string, destDoorIndex: number)
guessed
MoveLayoutCameraStarts or stops moving the layout camera in a direction. · by wowlua
(direction: HousingLayoutCameraDirection, isPressed: boolean)
guessed
RemoveRoomAttempt to return a previously placed room to the House Chest
(roomGUID: string)
guessed
RoomHasStairsReturns true of the provided roomGUID is a stairwell. Returns false if roomGUID is invalid
(roomGUID: string): boolean
guessed
RotateFocusedRoomRotates either the currently dragged or currently selected room, if either exist
(isLeft: boolean)
guessed
RotateRoomAttempt to rotate an already placed room
(roomGUID: string, isLeft: boolean)
guessed
SelectFloorplanSelects the floorplan of a room. · by wowlua
(roomID: number)
guessed
SetViewedFloorSets the floor being viewed. · by wowlua
(floor: number)
guessed
StartDragStarts dragging the selected room. · by wowlua
()
guessed
StopDragStops dragging. · by wowlua
()
guessed
StopDraggingRoomStops dragging the room. · by wowlua
()
guessed
ZoomLayoutCameraZooms the layout camera in or out and returns whether it zoomed. · by wowlua
(zoomIn: boolean): boolean
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
HOUSING_LAYOUT_DOOR_SELECTEDroomGUID: string, componentID: numbernot implemented
HOUSING_LAYOUT_DOOR_SELECTION_CHANGEDhasSelection: booleannot implemented
HOUSING_LAYOUT_DRAG_TARGET_CHANGEDisDraggingRoom: booleannot implemented
HOUSING_LAYOUT_FLOORPLAN_SELECTION_CHANGEDhasSelection: boolean, roomID: number, blueprintShareCode: string?not implemented
HOUSING_LAYOUT_OCCUPIED_FLOOR_RANGE_CHANGEDlowestFloor: number, highestFloor: numbernot implemented
HOUSING_LAYOUT_PIN_FRAMES_RELEASEDno payloadnot implemented
HOUSING_LAYOUT_PIN_FRAME_ADDEDpinFrame: HousingLayoutPinFramenot implemented
HOUSING_LAYOUT_PIN_FRAME_RELEASEDpinFrame: HousingLayoutPinFramenot implemented
HOUSING_LAYOUT_ROOM_COMPONENT_THEME_SET_CHANGEDroomGUID: string, componentID: number, newThemeSet: number, result: HousingResultnot implemented
HOUSING_LAYOUT_ROOM_MOVEDno payloadnot implemented
HOUSING_LAYOUT_ROOM_MOVE_INVALIDno payloadnot implemented
HOUSING_LAYOUT_ROOM_RECEIVEDplayAddedSound: booleannot implemented
HOUSING_LAYOUT_ROOM_REMOVEDno payloadnot implemented
HOUSING_LAYOUT_ROOM_RETURNEDno payloadnot implemented
HOUSING_LAYOUT_ROOM_SELECTION_CHANGEDhasSelection: booleannot implemented
HOUSING_LAYOUT_ROOM_SNAPPEDno payloadnot implemented
HOUSING_LAYOUT_VIEWED_FLOOR_CHANGEDfloor: numbernot implemented
SHOW_STAIR_DIRECTION_CONFIRMATIONno payloadnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("HOUSING_LAYOUT_DOOR_SELECTED").

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (HousingLayoutUI 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.