v0.13.8

DurationObject

object type31 methodsavailable in: camelot

Methods

In the emulator: 31 implemented.

methodwhat it doesstatus
AssignCopies another duration object and assigns it to this one. · warcraft.wiki.gg ↗
(other: LuaDurationObject)
implemented
CopyReturns a copy of this duration object. · warcraft.wiki.gg ↗
(): LuaDurationObject
implemented
EvaluateElapsedDurationCalculates the elapsed duration in seconds and evaluates it against a supplied curve. · warcraft.wiki.gg ↗
(curve: LuaCurveObjectBase, modifier: DurationTimeModifier): LuaCurveEvaluatedResult
implemented
EvaluateElapsedPercentCalculates the elapsed duration as a percentage value and evaluates it against a supplied curve. · warcraft.wiki.gg ↗
(curve: LuaCurveObjectBase, modifier: DurationTimeModifier): LuaCurveEvaluatedResult
implemented
EvaluateRemainingDurationCalculates the remaining duration in seconds and evaluates it against a supplied curve. · warcraft.wiki.gg ↗
(curve: LuaCurveObjectBase, modifier: DurationTimeModifier): LuaCurveEvaluatedResult
implemented
EvaluateRemainingPercentCalculates the remaining duration as a percentage value and evaluates it against a supplied curve. · warcraft.wiki.gg ↗
(curve: LuaCurveObjectBase, modifier: DurationTimeModifier): LuaCurveEvaluatedResult
implemented
EvaluateTotalDurationCalculates the total duration in seconds and evaluates it against a supplied curve. · warcraft.wiki.gg ↗
(curve: LuaCurveObjectBase, modifier: DurationTimeModifier): LuaCurveEvaluatedResult
implemented
FormatElapsedDurationFormats the elapsed duration of this object to a string. · warcraft.wiki.gg ↗
(formatter: NumericFormatter, modifier: DurationTimeModifier): string
implemented
FormatRemainingDurationFormats the remaining duration of this object to a string. · warcraft.wiki.gg ↗
(formatter: NumericFormatter, modifier: DurationTimeModifier): string
implemented
FormatTotalDurationFormats the total duration of this object to a string. · warcraft.wiki.gg ↗
(formatter: NumericFormatter, modifier: DurationTimeModifier): string
implemented
GetClockReturns the clock source used by this object. · warcraft.wiki.gg ↗
(): LuaDurationClock?
implemented
GetClockTimeReturns the current time of the clock source used by this object. · warcraft.wiki.gg ↗
(): FrameTime
implemented
GetElapsedDurationCalculates the elapsed duration of the stored time span. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): Seconds
implemented
GetElapsedPercentCalculates the elapsed duration as a percentage value. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): number
implemented
GetEndTimeCalculates the end time of the stored time span. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): FrameTime
implemented
GetModRateReturns the divisor used to convert a duration from real time to base time. · warcraft.wiki.gg ↗
(): number
implemented
GetRemainingDurationCalculates the remaining duration of the stored time span. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): Seconds
implemented
GetRemainingPercentCalculates the remaining duration as a percentage value. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): number
implemented
GetStartTimeCalculates the start time of the stored time span. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): FrameTime
implemented
GetTotalDurationCalculates the total duration of the stored time span. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): Seconds
implemented
HasExpiredReturns true once the duration has reached its end time. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): boolean
implemented
HasSecretValuesReturns true if the duration has been configured with any secret values. · warcraft.wiki.gg ↗
(): boolean
implemented
HasStartedReturns true once the duration has reached its start time. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): boolean
implemented
IsActiveReturns true while the duration is at or after its start time and before its end time. · warcraft.wiki.gg ↗
(modifier: DurationTimeModifier): boolean
implemented
IsZeroReturns true if the duration object is measuring a zero duration time span. · warcraft.wiki.gg ↗
(): boolean
implemented
ResetResets the duration object to represent a zero duration time span. · warcraft.wiki.gg ↗
()
implemented
SetClockConfigures the clock source used by this object. · warcraft.wiki.gg ↗
(clock: LuaDurationClock?)
implemented
SetTimeFromEndConfigures the duration object to represent an end time and a duration. · warcraft.wiki.gg ↗
(endTime: FrameTime, duration: Seconds, modRate: number)
implemented
SetTimeFromStartConfigures the duration object to represent a start time and a duration. · warcraft.wiki.gg ↗
(startTime: FrameTime, duration: Seconds, modRate: number)
implemented
SetTimeSpanConfigures the duration object to represent a fixed start and end time span. If the end time is earlier than the start time, the duration will clamp to zero. · warcraft.wiki.gg ↗
(startTime: FrameTime, endTime: FrameTime)
implemented
SetToDefaultsResets all state on the duration, and clears the secret values flag. · warcraft.wiki.gg ↗
()
implemented

sources

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