enum

Gamemode

Inherits Enum < Comparable < Value < Object

Constants

VN_OSU = 0_u8
VN_TAIKO = 1_u8
VN_CATCH = 2_u8
VN_MANIA = 3_u8
RX_OSU = 4_u8
RX_TAIKO = 5_u8
RX_CATCH = 6_u8
RX_MANIA = 7_u8
AP_OSU = 8_u8
AP_TAIKO = 9_u8
AP_CATCH = 10_u8
AP_MANIA = 11_u8

Constructors

from_params(vn : UInt8, mods : Mods) : Gamemode
Source

Class methods

valid_gamemodes
Source

Instance methods

ap_catch?

Returns true if this enum value equals AP_CATCH

Source
ap_mania?

Returns true if this enum value equals AP_MANIA

Source
ap_osu?

Returns true if this enum value equals AP_OSU

Source
ap_taiko?

Returns true if this enum value equals AP_TAIKO

Source
as_vn
Source
rx_catch?

Returns true if this enum value equals RX_CATCH

Source
rx_mania?

Returns true if this enum value equals RX_MANIA

Source
rx_osu?

Returns true if this enum value equals RX_OSU

Source
rx_taiko?

Returns true if this enum value equals RX_TAIKO

Source
to_s

Returns a String representation of this enum member. In the case of regular enums, this is just the name of the member. In the case of flag enums, it's the names joined by vertical bars, or "None", if the value is zero.

If an enum's value doesn't match a member's value, the raw value is returned as a string.

Color::Red.to_s                     # => "Red"
IOMode::None.to_s                   # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"

Color.new(10).to_s # => "10"
Source
vn_catch?

Returns true if this enum value equals VN_CATCH

Source
vn_mania?

Returns true if this enum value equals VN_MANIA

Source
vn_osu?

Returns true if this enum value equals VN_OSU

Source
vn_taiko?

Returns true if this enum value equals VN_TAIKO

Source