v0.13.8

C_EncounterTimeline

namespaceavailable in: camelot

Status in wowlua

34 functions: 21 implemented, 0 recorded, 13 guessed. 11 events, 4 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AddEditModeEventsAdds a predefined set of events to the timeline for display in Edit Mode.
(): Seconds
guessed
AddScriptEventAdds a custom event to the timeline.
(eventInfo: EncounterTimelineScriptEventRequest): EncounterTimelineEventID
implemented
CancelAllScriptEventsCancels all custom timeline events, removing them from the timeline.
()
implemented
CancelEditModeEventsRemoves all Edit Mode events from the timeline.
()
guessed
CancelScriptEventCancels a custom timeline event, removing it from the timeline.
(eventID: EncounterTimelineEventID)
implemented
FinishScriptEventFinishes a custom timeline event, removing it from the timeline.
(eventID: EncounterTimelineEventID)
implemented
GetCurrentTimeReturns the current timestamp used for rendering the timeline display.
(): Seconds
guessed
GetEventColorReturns the current color used to render timeline event.
(eventID: EncounterTimelineEventID, overrideTrigger: EncounterEventColorTrigger?): ColorMixin
implemented
GetEventCountBySourceReturns the number of present events in the timeline by their source type.
(source: EncounterTimelineEventSource): number
implemented
GetEventHighlightTimeReturns the duration at which timeline events will be highlighted for imminency.
(): Seconds
guessed
GetEventInfoReturns information about a timeline event. This data is generally expected to be static for the lifetime of an event.
(eventID: EncounterTimelineEventID): EncounterTimelineEventInfo
implemented
GetEventListReturns an unsorted list of event IDs present in the timeline.
(): EncounterTimelineEventID[]
implemented
GetEventStateReturns the current state of a timeline event.
(eventID: EncounterTimelineEventID): EncounterTimelineEventState
implemented
GetEventTimeElapsedReturns the elapsed duration of a timeline event.
(eventID: EncounterTimelineEventID): Seconds
implemented
GetEventTimeRemainingReturns the remaining duration of a timeline event.
(eventID: EncounterTimelineEventID): Seconds
implemented
GetEventTimerReturns a Duration object that tracks the elapsed duration of a timeline event. This object tracks the range [0, duration] of the event and automatically pauses its progression based on event state.
(eventID: EncounterTimelineEventID): LuaDurationObject?
guessed
GetEventTrackReturns information about the position of an event on the timeline.
(eventID: EncounterTimelineEventID): (EncounterTimelineTrack, number?)
implemented
GetSortedEventListReturns a sorted list of event IDs present in the timeline from shortest to longest remaining durations, meeting the requirements of the specified filters.
(maxEventCount: number?, maxEventDuration: Seconds?, excludeTerminalStates: boolean, excludeHiddenEvents: boolean): EncounterTimelineEventID[]
implemented
GetTrackInfoReturns information for a single timeline track.
(track: EncounterTimelineTrack): EncounterTimelineTrackInfo
guessed
GetTrackListReturns information about all timeline tracks.
(): EncounterTimelineTrackInfo[]
guessed
GetTrackMaxEventDurationReturns the maximum permitted event duration on a single timeline track.
(track: EncounterTimelineTrack): Seconds
guessed
GetTrackTypeReturns the type of a single timeline track.
(track: EncounterTimelineTrack): EncounterTimelineTrackType
guessed
GetViewTypeReturns the current view type of the timeline.
(): EncounterTimelineViewType
guessed
HasActiveEventsReturns true if the timeline contains any events in the active state.
(): boolean
implemented
HasAnyEventsReturns true if the timeline contains any events in any state.
(): boolean
implemented
HasPausedEventsReturns true if the timeline contains any events in the paused state.
(): boolean
implemented
HasVisibleEventsReturns true if the timeline contains any events that are on visible tracks.
(): boolean
implemented
IsEventBlockedReturns true if the event is in a 'blocked' state, where the cast for this event may not occur due to encounter conditions not being met.
(eventID: EncounterTimelineEventID): boolean
implemented
IsFeatureAvailableReturns true if the encounter timeline feature is available on this client.
(): boolean
guessed
IsFeatureEnabledReturns true if the encounter timeline feature has been enabled by the player. This function will always return false if the feature is not available.
(): boolean
guessed
PauseScriptEventPauses a custom timeline event, hiding it from the timeline. A paused event can later be resumed to show it again, or canceled.
(eventID: EncounterTimelineEventID)
implemented
ResumeScriptEventResumes a custom timeline event, showing it on the timeline again if it is currently paused.
(eventID: EncounterTimelineEventID)
implemented
SetEventIconTexturesUpdates a given vector of texture objects to reference art assets for icons associated with an event.
(eventID: EncounterTimelineEventID, includeIcons: EncounterEventIconmask, textures: Texture[])
implemented
SetViewTypeChanges the view type for the timeline. This adjusts track layouts to be more appropriate for a specific mode and optimizes event processing.
(viewType: EncounterTimelineViewType)
guessed

Events

eventpayloadfired by the emulator
ENCOUNTER_TIMELINE_EVENT_ADDEDeventInfo: EncounterTimelineEventInfoimplemented
ENCOUNTER_TIMELINE_EVENT_BLOCK_STATE_CHANGEDeventID: EncounterTimelineEventIDnot implemented
ENCOUNTER_TIMELINE_EVENT_COLOR_CHANGEDeventID: EncounterTimelineEventIDnot implemented
ENCOUNTER_TIMELINE_EVENT_HIGHLIGHTeventID: EncounterTimelineEventIDnot implemented
ENCOUNTER_TIMELINE_EVENT_REMOVEDeventID: EncounterTimelineEventIDimplemented
ENCOUNTER_TIMELINE_EVENT_STATE_CHANGEDeventID: EncounterTimelineEventIDimplemented
ENCOUNTER_TIMELINE_EVENT_TRACK_CHANGEDeventID: EncounterTimelineEventIDnot implemented
ENCOUNTER_TIMELINE_LAYOUT_UPDATEDno payloadimplemented
ENCOUNTER_TIMELINE_STATE_UPDATEDno payloadnot implemented
ENCOUNTER_TIMELINE_VIEW_ACTIVATEDviewType: EncounterTimelineViewTypenot implemented
ENCOUNTER_TIMELINE_VIEW_DEACTIVATEDviewType: EncounterTimelineViewTypenot implemented

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

Structures

  • EncounterTimelineEventFilter · maxEventCount?, maxEventDuration?, excludeTerminalStates, excludeHiddenEvents
  • EncounterTimelineEventInfo · id, source, spellName, spellID, iconFileID, duration, maxQueueDuration, icons, severity, isApproximate
  • EncounterTimelineScriptEventRequest · spellID, iconFileID, duration, maxQueueDuration, overrideName, icons?, severity, paused
  • EncounterTimelineTrackInfo · id, type, minimumDuration?, maximumDuration?, minimumEventIntroDuration?, minimumEventGapDuration?, maximumEventCount?, sortDirection?

sources

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