This constructor is an implementation detail. Do not use this.
Accesses the Best Segment Time.
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).
Disposes the object, allowing it to clean up all of its memory. You need to call this for every object that you don't use anymore and hasn't already been disposed.
Accesses the amount of bytes the segment icon's data takes up.
Accesses the segment icon's data. If there is no segment icon, this returns an empty buffer.
Accesses the name of the segment.
Accesses the split time of the Personal Best for this segment. If it doesn't exist, an empty time is returned.
Accesses the Segment History of this segment.
Allows for scoped usage of the object. The object is guaranteed to get disposed once this function returns. You are free to dispose the object early yourself anywhere within the scope. The scope's return value gets carried to the outside of this function.
Creates a new Segment with the name given.
Generated using TypeDoc
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.