Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a spinner in a beatmap.

All we need from spinners is their duration. The position of a spinner is always at 256x192.

Hierarchy

Index

Constructors

  • new Spinner(values: { endTime: number; startTime: number; type: number }): Spinner

Properties

comboOffset: number

How many combo colors to skip, if this object starts a new combo.

endPosition: Vector2

The end position of the hitobject in osu!pixels.

endTime: number

The end time of the hitobject.

isNewCombo: boolean

Whether this hit object represents a new combo.

position: Vector2

The position of the hitobject in osu!pixels.

samples: HitSampleInfo[] = []

The samples to be played when this hit object is hit.

In the case of sliders, this is the sample of the curve body and can be treated as the default samples for the hit object.

scale: number = 1

The scale used to calculate stacked position and radius.

stackHeight: number = 0

The stack height of the hitobject.

startTime: number

The start time of the hitobject in milliseconds.

The bitwise type of the hitobject (circle/slider/spinner).

Accessors

  • get duration(): number
  • get radius(): number

Methods

  • toString(): string
  • typeStr(): string

Generated using TypeDoc