Struct Bms

Source
pub struct Bms<'a> {
Show 30 fields pub main_data: Vec<MainData<'a>>, pub rank: Option<i32>, pub def_ex_rank: Option<f64>, pub total: Option<f64>, pub volume_wav: Option<f64>, pub stage_file: Option<&'a str>, pub banner: Option<&'a str>, pub back_bmp: Option<&'a str>, pub play_level: Option<i32>, pub difficulty: Option<i32>, pub title: Option<&'a str>, pub sub_title: Vec<&'a str>, pub artist: Option<&'a str>, pub sub_artist: Vec<&'a str>, pub genre: Option<&'a str>, pub bpm: Option<f64>, pub ex_bpm: HashMap<usize, f64>, pub stop: HashMap<usize, f64>, pub ln_mode: Option<i32>, pub ln_type: Option<i32>, pub ln_object: HashSet<usize>, pub wav: HashMap<usize, &'a str>, pub bmp: HashMap<usize, &'a str>, pub url: Option<&'a str>, pub email: Option<&'a str>, pub scroll: HashMap<usize, f64>, pub speed: HashMap<usize, f64>, pub preview: Option<&'a str>, pub uncommon: UncommonHeader<'a>, pub deprecated: DeprecatedHeader<'a>,
}
Expand description

ランダムを考慮したBMS

Fields§

§main_data: Vec<MainData<'a>>

メインデータ

mmmcc:chchch…

mmm : 小節数 [0-9]

cc : チャンネル [0-9, A-Z, a-z]

chchch.. : メインのデータで、2文字一組として扱う [0-9, A-Z, a-z]

§rank: Option<i32>

判定幅

2を基本とするのが主流だが、その幅は実装依存

§def_ex_rank: Option<f64>

より細かい判定幅

100をRank2と同じとするのが主流だが、Rankの1に相当する数が実装依存

§total: Option<f64>

ゲージ増加の総数

全ての判定が最良のときのゲージの増加量 この値からキー1つあたりのゲージ増加量を計算する 特にLNの種類によって判定数が変化するので、 それに対応するため

§volume_wav: Option<f64>

譜面全体の音量

§stage_file: Option<&'a str>

ロード画面に表示する画像

§banner: Option<&'a str>

選曲画面やリザルト画面に表示する横長の画像

§back_bmp: Option<&'a str>

ステージファイルに重ねる画像

選曲後カバー等の調整をする画面で、 ステージファイルにタイトルの代わりに重ねる

§play_level: Option<i32>

レベル

§difficulty: Option<i32>

難易度

主流な名付けは

1 : EASY, BEGINNER, LIGHT

2 : NORMAL, STANDARD

3 : HARD, HYPER

4 : EX, ANOTHER

5 : BLACK_ANOTHER, INSANE, 発狂

§title: Option<&'a str>

タイトル

§sub_title: Vec<&'a str>

サブタイトル

§artist: Option<&'a str>

アーティスト

§sub_artist: Vec<&'a str>

サブアーティスト

§genre: Option<&'a str>

ジャンル名

§bpm: Option<f64>

基本BPM

曲選択時の表示や曲の最初のBPMとして使う

§ex_bpm: HashMap<usize, f64>

BPM変化用

BPM変化時に256以上の値を指定したいとき、 08チャンネルでidを指定する

§stop: HashMap<usize, f64>

停止

譜面を停止するときに09チャンネルでidを指定する

§ln_mode: Option<i32>

LNの判定方法

1 : LN, 始点判定が基準で、最後まで押し切らないとPOOR

2 : CN, 始点判定と終点判定がある

3 : HCN, CHの判定に、押している間16分ごとに判定を追加したもの

§ln_type: Option<i32>

LNの指定方法

1 : 主流の指定方法

メインデータの0以外のidをLNの始点終点の繰り返しとして解析

2 : 非推奨な指定方法

メインデータの0以外のidが続く部分をLNとして解析

1 : 0011000000002200 2 : 0011111111220000

§ln_object: HashSet<usize>

LNの音を鳴らす終点idの指定

LNTYPE 1 で終点として使うと、音が鳴るようになる

§wav: HashMap<usize, &'a str>

音声ファイル

詳細はメインデータ等に記載

§bmp: HashMap<usize, &'a str>

画像ファイル

詳細はメインデータ等に記載

§url: Option<&'a str>

BMS制作者のホームページ

§email: Option<&'a str>

BMS制作者のEメール

§scroll: HashMap<usize, f64>

譜面速度

§speed: HashMap<usize, f64>

譜面速度

SCROLLと違って線形補間がされる

§preview: Option<&'a str>

曲選択時に流れる音声

ここで指定されていなければ、previewと名前が付いた音声を流すのが主流

§uncommon: UncommonHeader<'a>

あまり使われないコマンド

§deprecated: DeprecatedHeader<'a>

非推奨のコマンド

Trait Implementations§

Source§

impl<'a> Debug for Bms<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for Bms<'a>

Source§

fn default() -> Bms<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> PartialEq for Bms<'a>

Source§

fn eq(&self, other: &Bms<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for Bms<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Bms<'a>

§

impl<'a> RefUnwindSafe for Bms<'a>

§

impl<'a> Send for Bms<'a>

§

impl<'a> Sync for Bms<'a>

§

impl<'a> Unpin for Bms<'a>

§

impl<'a> UnwindSafe for Bms<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V