Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SegmentRef

A Segment describes a point in a speedrun that is suitable for storing a split time. This stores the name of that segment, an icon, the split times of different comparisons, and a history of segment times.

Hierarchy

Index

Constructors

constructor

  • This constructor is an implementation detail. Do not use this.

    Parameters

    • ptr: number

    Returns SegmentRef

Properties

ptr

ptr: number

Methods

bestSegmentTime

  • Accesses the Best Segment Time.

    Returns TimeRef

comparison

  • comparison(comparison: string): TimeRef
  • Accesses the specified comparison's time. If there's none for this comparison, an empty time is being returned (but not stored in the segment).

    Parameters

    • comparison: string

    Returns TimeRef

icon

  • icon(): string
  • Accesses the icon of the segment encoded as a Data URL storing the image's data. If the image's data is empty, this returns an empty string instead of a URL.

    Returns string

name

  • name(): string
  • Accesses the name of the segment.

    Returns string

personalBestSplitTime

  • Accesses the split time of the Personal Best for this segment. If it doesn't exist, an empty time is returned.

    Returns TimeRef

segmentHistory

  • Accesses the Segment History of this segment.

    Returns SegmentHistoryRef

Generated using TypeDoc