Interface ISlidableObject

A HitObject that has a curve.

interface ISlidableObject {
    distance: number;
    duration: number;
    endTime: number;
    hitSound: HitSound;
    hitType: HitType;
    hitWindows: HitWindows;
    legacyLastTickOffset?: number;
    nodeSamples: HitSample[][];
    path: SliderPath;
    repeats: number;
    samples: HitSample[];
    spanDuration: number;
    spans: number;
    startTime: number;
    tickDistance?: number;
    tickInterval?: number;
    tickRate?: number;
    velocity: number;
    clone(): IHitObject;
}

Hierarchy (view full)

Properties

distance: number

The positional length of the hit object.

duration: number

The duration of the hit object.

endTime: number

The time at which the hit object ends.

hitSound: HitSound

Hit sound data of this hit object.

hitType: HitType

Hit type data of this hit object.

hitWindows: HitWindows

Hit windows of this hit object.

legacyLastTickOffset?: number

Offset to the last tick.

nodeSamples: HitSample[][]

The samples to be played when each node of the IHasPath is hit. 0: The first node. 1: The first repeat. 2: The second repeat. ... n-1: The last repeat. n: The last node.

The curve.

repeats: number

The amount of times the hit object repeats.

samples: HitSample[]

Samples of this hit object.

spanDuration: number

The duration of a single span.

spans: number

The number of spans of the hit object.

startTime: number

The time at which hit object starts.

tickDistance?: number

Spacing between ticks of a slidable object.

tickInterval?: number

The length (in milliseconds) between ticks of this slidable object.

tickRate?: number

An extra multiplier that affects the number of ticks generated by this slidable object. An increase in this value increases tick distance, which reduces the number of ticks generated.

velocity: number

Velocity of a slidable object.

Methods