WowAddons

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

C_HousingCatalog

34 functions, 8 events, 10 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_HousingCatalog.CreateCatalogSearcher

searcher = C_HousingCatalog.CreateCatalogSearcher()

Creates a new instance of a HousingCatalog searcher; This can be used to asynchronously search/filter the HousingCatalog without affecting/being restricted by the filter state of other Housing Catalog UI displays

Returns

searcherHousingCatalogSearcher

C_HousingCatalog.DeletePreviewCartDecor

C_HousingCatalog.DeletePreviewCartDecor(decorGUID)

Arguments

decorGUIDWOWGUID

C_HousingCatalog.DestroyEntry

C_HousingCatalog.DestroyEntry(entryVariantID, destroyAll)

Attempt to delete the entry from storage

Arguments

entryVariantIDHousingCatalogEntryVariantID
destroyAllboolIf true, deletes all entries within the stack; If false, will only delete one

C_HousingCatalog.GetAllFilterTagGroups

filterTagGroups = C_HousingCatalog.GetAllFilterTagGroups()

Returns

filterTagGroupsHousingCatalogFilterTagGroupInfo[]

C_HousingCatalog.GetAllVariantInfosForEntry

variantInfos = C_HousingCatalog.GetAllVariantInfosForEntry(entryID)

Returns variant info for all variants of a given catalog entry; Variants represent different visual modifications of the same base entry (ex: dyed versions)

Arguments

entryIDHousingCatalogEntryID

Returns

variantInfosHousingCatalogEntryVariantInfo[]

C_HousingCatalog.GetBundleInfo

bundleInfo = C_HousingCatalog.GetBundleInfo(bundleCatalogShopProductID)

Arguments

bundleCatalogShopProductIDnumber

Returns

bundleInfoHousingBundleInfo may be nil

C_HousingCatalog.GetCartSizeLimit

cartSizeLimit = C_HousingCatalog.GetCartSizeLimit()

Returns

cartSizeLimitnumber

C_HousingCatalog.GetCatalogCategoryAndSubcategoryNames

categoryName, subcategoryName = C_HousingCatalog.GetCatalogCategoryAndSubcategoryNames(subcategoryID)

If found, returns the names of the parent category and the specified subcategory

May return nothing.

Arguments

subcategoryIDnumber

Returns

categoryNamestring
subcategoryNamestring

C_HousingCatalog.GetCatalogCategoryInfo

info = C_HousingCatalog.GetCatalogCategoryInfo(categoryID)

Arguments

categoryIDnumber

Returns

infoHousingCatalogCategoryInfo may be nil

C_HousingCatalog.GetCatalogEntryInfo

info = C_HousingCatalog.GetCatalogEntryInfo(entryID)

Arguments

entryIDHousingCatalogEntryID

Returns

infoHousingCatalogEntryInfo may be nil

C_HousingCatalog.GetCatalogEntryInfoByItem

info = C_HousingCatalog.GetCatalogEntryInfoByItem(itemInfo)

Arguments

itemInfoItemInfoItemID, name, or link of an item that grants/corresponds to a particular type of housing catalog object (ex: decor)

Returns

infoHousingCatalogEntryInfo may be nil

C_HousingCatalog.GetCatalogEntryInfoByRecordID

info = C_HousingCatalog.GetCatalogEntryInfoByRecordID(entryType, recordID)

Arguments

entryTypeHousingCatalogEntryType
recordIDnumber

Returns

infoHousingCatalogEntryInfo may be nil

C_HousingCatalog.GetCatalogEntryRefundTimeStampByRecordID

refundTimeStamp = C_HousingCatalog.GetCatalogEntryRefundTimeStampByRecordID(entryType, recordID)

Arguments

entryTypeHousingCatalogEntryType
recordIDnumber

Returns

refundTimeStamptime_t may be nil

C_HousingCatalog.GetCatalogEntryVariantInfo

info = C_HousingCatalog.GetCatalogEntryVariantInfo(entryVariantID)

Arguments

entryVariantIDHousingCatalogEntryVariantID

Returns

infoHousingCatalogEntryVariantInfo may be nil

C_HousingCatalog.GetCatalogSubcategoryInfo

info = C_HousingCatalog.GetCatalogSubcategoryInfo(subcategoryID)

Arguments

subcategoryIDnumber

Returns

infoHousingCatalogSubcategoryInfo may be nil

C_HousingCatalog.GetDecorMaxOwnedCount

maxOwnedCount = C_HousingCatalog.GetDecorMaxOwnedCount()

Returns the maximum total number of decor that can be in storage/in the house chest; Note that not all decor entries in storage count towards this limit (see GetDecorTotalOwnedCount)

Returns

maxOwnedCountnumber

C_HousingCatalog.GetDecorTotalOwnedCount

totalOwnedCount, exemptDecorCount = C_HousingCatalog.GetDecorTotalOwnedCount()

Returns

totalOwnedCountnumberThe total number of owned decor in storage, including both exempt and non-exempt decor
exemptDecorCountnumberThe number of decor that do not count against the max storage limit

C_HousingCatalog.GetDestroyableInstanceCount

destroyableInstanceCount = C_HousingCatalog.GetDestroyableInstanceCount(entryVariantID)

Returns the number of instances that can be to be destroyed in storage; These instances count towards the max storage limit

Arguments

entryVariantIDHousingCatalogEntryVariantID

Returns

destroyableInstanceCountnumber

C_HousingCatalog.GetFeaturedBundles

bundleInfos = C_HousingCatalog.GetFeaturedBundles()

Returns

bundleInfosHousingBundleInfo[]

C_HousingCatalog.GetFeaturedSmallProducts

infos = C_HousingCatalog.GetFeaturedSmallProducts()

Returns

infosHousingFeaturedSmallProductInfo[]

C_HousingCatalog.GetMarketInfoForDecor

marketInfo = C_HousingCatalog.GetMarketInfoForDecor(decorID)

Returns market info for a specific decor. This is decor-only for now but should be extended to support entry type and recordID generically

Arguments

decorIDnumber

Returns

marketInfoHousingMarketInfo may be nil

C_HousingCatalog.HasFeaturedEntries

hasEntries = C_HousingCatalog.HasFeaturedEntries()

Returns

hasEntriesbool

C_HousingCatalog.HousingMarketActionAddToCart

C_HousingCatalog.HousingMarketActionAddToCart(productID, withPreview)

Arguments

productIDnumber
withPreviewbool

C_HousingCatalog.HousingMarketActionClearCart

C_HousingCatalog.HousingMarketActionClearCart()

C_HousingCatalog.HousingMarketActionRemoveFromCart

C_HousingCatalog.HousingMarketActionRemoveFromCart(productID)

Arguments

productIDnumber

C_HousingCatalog.HousingMarketActionViewBundle

C_HousingCatalog.HousingMarketActionViewBundle(productID)

Arguments

productIDnumber

C_HousingCatalog.HousingMarketActionViewInStore

C_HousingCatalog.HousingMarketActionViewInStore(productID)

Arguments

productIDnumber

C_HousingCatalog.IsPreviewCartItemShown

isShown = C_HousingCatalog.IsPreviewCartItemShown(decorGUID)

Arguments

decorGUIDWOWGUID

Returns

isShownbool

C_HousingCatalog.PromotePreviewDecor

success = C_HousingCatalog.PromotePreviewDecor(decorID, previewDecorGUID)

Arguments

decorIDnumber
previewDecorGUIDWOWGUID

Returns

successbool

C_HousingCatalog.RequestHousingMarketInfoRefresh

C_HousingCatalog.RequestHousingMarketInfoRefresh()

C_HousingCatalog.RequestHousingMarketRefundInfo

C_HousingCatalog.RequestHousingMarketRefundInfo()

C_HousingCatalog.SearchCatalogCategories

categoryIDs = C_HousingCatalog.SearchCatalogCategories(searchParams)

Arguments

searchParamsHousingCategorySearchInfo

Returns

categoryIDsnumber[]

C_HousingCatalog.SearchCatalogSubcategories

subcategoryIDs = C_HousingCatalog.SearchCatalogSubcategories(searchParams)

Arguments

searchParamsHousingCategorySearchInfo

Returns

subcategoryIDsnumber[]

C_HousingCatalog.SetPreviewCartItemShown

C_HousingCatalog.SetPreviewCartItemShown(decorGUID, shown)

Arguments

decorGUIDWOWGUID
shownbool

Events

HOUSING_CATALOG_CATEGORY_UPDATED

categoryIDnumber

HOUSING_CATALOG_SUBCATEGORY_UPDATED

subcategoryIDnumber

HOUSING_DECOR_ADD_TO_PREVIEW_LIST

previewItemDataHousingPreviewItemData

HOUSING_DECOR_PREVIEW_LIST_REMOVE_FROM_WORLD

decorGUIDWOWGUID

HOUSING_DECOR_PREVIEW_LIST_UPDATED

No payload.

HOUSING_REFUND_LIST_UPDATED

No payload.

HOUSING_STORAGE_ENTRY_UPDATED

entryVariantIDHousingCatalogEntryVariantID

HOUSING_STORAGE_UPDATED

No payload.

Tables

HousingBundleDecorEntryInfo structure

decorIDnumber
quantitynumber

HousingBundleInfo structure

productIDnumber
pricenumber
originalPricenumber may be nil
nonDecorProductsnumber[]
decorEntriesHousingBundleDecorEntryInfo[]
canPreviewbool default trueBundles containing non-decor items cannot be previewed

HousingCatalogCategoryInfo structure

IDnumber
orderIndexnumber
namecstring may be nil
icontextureAtlas may be nil
subcategoryIDsnumber[]
anyStoredEntriesboolTrue if the player owns anything that falls under this category

HousingCatalogEntryInfo structure

Base information about an object in the Catalog; For info for a specific owned stack of this object, see HousingCatalogEntryVariantInfo

recordIDnumber
entryTypeHousingCatalogEntryType
itemIDnumber may be nil
namecstring
assetModelAsset may be nil3D model asset for displaying in the UI; May be nil if the entry doesn't have a model, or has one that isn't supported by UI model scenes
iconTextureFileAsset may be nilEntry icon in the form of a texture file; Catalog entries should have either this OR an iconAtlas set
iconAtlastextureAtlas may be nilEntry icon in the form a texture atlas element; Catalog entries should have either this OR an iconTexture set
uiModelSceneIDnumber may be nilSpecific UI model scene ID to use when previewing this entry's 3D model; If not set, the default catalog model scene is used
categoryIDsnumber[]
subcategoryIDsnumber[]
dataTagsByIDLuaValueVariantSimple localized 'tag' strings that are primarily used for things like categorization and filtering
sizeHousingCatalogEntrySize
placementCostnumberHow much of the applicable budget placing this entry would cost (if any)
totalNumStorednumberThe total number of instances of this entry that exist in storage across all variants; Does not include unredeemed instances (see remainingRedeemable)
remainingRedeemablenumberThe number of unredeemed instances of this entry that exist in storage; Some auto-awarded housing objects are granted in this 'lazily-instantiated' way, and will be 'redeemed' on first being placed
totalNumPlacednumberThe total number of instances of this entry that have been placed across all of the player's houses and plots, across all variants
destroyableInstanceCountnumberThe number of instances that can be destroyed for this entry.
isUniqueTrophyboolThis decor is flagged to display as a unique trophy item.
isAllowedOutdoorsboolTrue if this entry is something that is allowed to be placed outside, within a plot
isAllowedIndoorsboolTrue if this entry is something that is allowed to be placed indoors, within a house interior
canCustomizeboolTrue if this entry is something that can be customized; Kinds of customization vary depending on the entry type
isPrefabbool
qualityItemQuality may be nil
firstAcquisitionBonusnumberHouse XP that can be gained upon acquiring this entry for the first time
sourceTextcstringDescribes specific sources this entry may be gained from; Faction-specific sources may or may not be included based on the current player's faction

HousingCatalogEntryVariantInfo structure

Represents a single stack of instances of an object in the Catalog, that are all of a specific variation; For example, a stack of undyed chairs, or blue-dyed tables

entryVariantIDHousingCatalogEntryVariantID
numStorednumberThe number of instances of this specific variant that exist in storage
dyeSlotsHousingDecorDyeSlot[]Dye slot information for this variant; Empty for entries that can't be dyed

HousingCatalogSubcategoryInfo structure

IDnumber
orderIndexnumber
parentCategoryIDnumber
namecstring may be nil
icontextureAtlas may be nil
anyStoredEntriesboolTrue if the player owns anything that falls under this subcategory

HousingCategorySearchInfo structure

withStoredEntriesOnlybool default falseIf true, search will only return categories/subcategories that the player has something stored under
includeFeaturedCategorybool default false
editorModeContextHouseEditorMode may be nilIf set, will restrict results to only categories associated with/used by this Editor Mode

HousingFeaturedSmallProductInfo structure

entryVariantIDHousingCatalogEntryVariantID may be nil
productIDnumber
pricenumber
originalPricenumber may be nil
canPreviewbool

HousingMarketInfo structure

pricenumber
productIDnumber
bundleIDsnumber[]

HousingPreviewItemData structure

decorGUIDWOWGUID may be nil
productIDnumber may be nil
bundleCatalogShopProductIDnumber may be nil
isBundleParentbool
isBundleChildbool
idnumber
decorIDnumber
namestring
iconnumber
pricenumber
salePricenumber may be nil

Dafür brauchst du WowAddons

Kostenlos, für Windows, macOS und Linux: Es packt das Addon mit einem Klick in dein Spiel und hält es aktuell. Öffne es einmal und drück dann nochmal auf Installieren.

WowAddons läuft auf deinem Computer: Öffne wowaddons.gg dort.

Für Windows herunterladen