v0.13.8

C_ContributionCollector

namespaceavailable in: camelot

Status in wowlua

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

Functions

functionwhat it doesstatus
CloseCloses the contribution collector API state.
()
guessed
ContributeContributes resources to a building.
(contributionID: number)
guessed
GetActiveReturns the currently active buildings.
(): number
guessed
GetAtlasesReturns a table listing the possible states for a building.
(contributionID: number): string[]
guessed
GetBuffsReturns the buffs provided by a building (e.g. in a Warfront).
(contributionID: number): number
guessed
GetContributionAppearanceReturns contribution appearance info.
(contributionID: number, contributionState: ContributionState): ContributionAppearance?
guessed
GetContributionCollectorsForMapReturns contribution buildings on a map.
(uiMapID: number): ContributionMapInfo[]
implemented
GetContributionResultReturns a value indicating the result of a contribution.
(contributionID: number): ContributionResult
guessed
GetDescriptionReturns the description of a building.
(contributionID: number): string
guessed
GetManagedContributionsForCreatureIDReturns contributions for a creature.
(creatureID: number): number
guessed
GetNameReturns the name of a building.
(contributionID: number): string
guessed
GetOrderIndexReturns the order in which buildings are displayed.
(contributionID: number): number
guessed
GetRequiredContributionCurrencyReturns the currencyID and amount needed to contribute to a building.
(contributionID: number): (number?, number?)
guessed
GetRequiredContributionItemReturns the itemID and amount needed to contribute to a building.
(contributionID: number): (number?, number?)
guessed
GetRewardQuestIDReturns the hidden quest that is flagged completed when a contribution is made.
(contributionID: number): number
guessed
GetStateReturns the current state of a building, its completion percentage, and time until next state change.
(contributionID: number): (ContributionState, number, number?, number)
guessed
HasPendingContributionReturns whether there is a pending contribution.
(contributionID: number): boolean
guessed
IsAwaitingRewardQuestDataReturns true if the client is waiting for quest reward data.
(contributionID: number): boolean
guessed

Events

eventpayloadfired by the emulator
CONTRIBUTION_CHANGEDstate: ContributionState, result: ContributionResult, name: string, contributionID: numbernot implemented
CONTRIBUTION_COLLECTOR_PENDINGcontributionID: number, isPending: boolean, result: numbernot implemented
CONTRIBUTION_COLLECTOR_UPDATEno payloadnot implemented
CONTRIBUTION_COLLECTOR_UPDATE_SINGLEcontributionID: numbernot implemented

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

Structures

  • ContributionAppearance · stateName, stateColor, tooltipLine, tooltipUseTimeRemaining, statusBarAtlas, borderAtlas, bannerAtlas
  • ContributionMapInfo · areaPoiID, position, name, atlasName, collectorCreatureID

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (ContributionCollector system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.