Class: OsuRuby::Beatmap::Data
- Inherits:
-
Object
- Object
- OsuRuby::Beatmap::Data
- Extended by:
- Forwardable
- Includes:
- Interface::ExtendableMethod
- Defined in:
- (osu-ruby2 0.0.2) osu-ruby2/beatmap/data.rb
Overview
Represents Beatmap data in general.
Constant Summary collapse
- SPECIAL_SECTIONS =
TODO: define special section for parsing etc.
%i(TimingPoints HitObjects).freeze
- SPINNER_DIFFICULTY =
defines global spinner difficulty used through all main modes.
DifficultyProgress.new(3.0,5.0,7.5)
- LATEST_FILE_VERSION =
osu! beatmap latest version
14
Class Method Summary collapse
Instance Method Summary collapse
-
#bpm_at(time) ⇒ Float
Current BPM at given time position.
-
#clear(mode = nil)
reset beatmap cache and process the extensions defined.
-
#clear_caches
Clear existing caches stored in a beatmap.
-
#initialize ⇒ Data
constructor
A new instance of Data.
-
#initialize_copy(other) ⇒ Object
copies all soft references of the original beatmap to current beatmap.
-
#quad_tick_rate? ⇒ Boolean
Checks whether the beatmap have 2 x 2^n tick rate.
-
#spinner_difficulty ⇒ Float
Obtain current beatmap spinner difficulty.
-
#strange_tick_rate? ⇒ Boolean
Checks whether does not satisfy the usual tick rate divisor.
-
#sv_at(time) ⇒ Float
Current Slider Velocity at given time position.
-
#timing_at(time) ⇒ TimingPoints::Compound
obtain timing point property at given
time
. -
#triple_tick_rate? ⇒ Boolean
Checks whether the beatmap have 3 x 2^n tick rate.
-
#unusual_tick_rate? ⇒ Boolean
Checks whether does not use the standard supported tick rate.
- #update_contents(parser_data) ⇒ Object
Methods included from Interface::MultiplexerInterface
Constructor Details
#initialize ⇒ Data
Returns a new instance of Data.
Class Method Details
.parse(str) ⇒ Object
Instance Method Details
#bpm_at(time) ⇒ Float
Returns current BPM at given time position.
#clear(mode = nil)
This method returns an undefined value.
reset beatmap cache and process the extensions defined
#clear_caches
This method returns an undefined value.
Clear existing caches stored in a beatmap. Currently it supports following operations:
-
Clears cached timing from current beatmap.
#initialize_copy(other) ⇒ Object
copies all soft references of the original beatmap to current beatmap. pretty useful for handling converts or mods.
#quad_tick_rate? ⇒ Boolean
Returns checks whether the beatmap have 2 x 2^n tick rate.
#spinner_difficulty ⇒ Float
Returns obtain current beatmap spinner difficulty.
#strange_tick_rate? ⇒ Boolean
Returns checks whether does not satisfy the usual tick rate divisor.
#sv_at(time) ⇒ Float
Returns current Slider Velocity at given time position.
#timing_at(time) ⇒ TimingPoints::Compound
Different behavior checks will be implemented later.
This behavior changed in b20210823.cuttingedge
build.
obtain timing point property at given time
#triple_tick_rate? ⇒ Boolean
Returns checks whether the beatmap have 3 x 2^n tick rate.
#unusual_tick_rate? ⇒ Boolean
Returns checks whether does not use the standard supported tick rate.