C_ContributionCollector.GetState

From Warcraft Wiki
Jump to navigation Jump to search

Returns the current state of a building, its completion percentage, and time until next state change.

contributionState, contributionPercentageComplete, timeOfNextStateChange, startTime = C_ContributionCollector.GetState(contributionID)

Arguments

contributionID
number : ContributionID

Returns

contributionState
Enum.ContributionState? = None
Value Field Description
0 None
1 Building
2 Active
3 UnderAttack
4 Destroyed
contributionPercentageComplete
number
timeOfNextStateChange
number?
startTime
number

Patch changes

Battle for Azeroth Patch 8.0.1 (2018-07-17): Added startTime return.
Legion Patch 7.2.0 (2017-03-28): Added.