Skip to main content

IBgmPlayerMethods

Trait IBgmPlayerMethods 

Source
pub trait IBgmPlayerMethods: IBgmPlayer {
    // Provided methods
    fn pause_current_bgm(self) { ... }
    fn is_playing(self) -> bool { ... }
    fn is_playing_2(self, event_name: impl Into<Il2CppString>) -> bool { ... }
    fn play(self, event_name: impl Into<Il2CppString>) { ... }
    fn play_select(self, event_name: impl Into<Il2CppString>) { ... }
    fn stop(self) { ... }
    fn tick(self, menu: impl Into<MyRoomSoundMenu>) { ... }
    fn close(self) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn pause_current_bgm(self)

PauseCurrentBgm() overload

Source

fn is_playing(self) -> bool

IsPlaying() overload

Source

fn is_playing_2(self, event_name: impl Into<Il2CppString>) -> bool

IsPlaying(::unity::Il2CppString) overload

Source

fn play(self, event_name: impl Into<Il2CppString>)

Play(::unity::Il2CppString) overload

Source

fn play_select(self, event_name: impl Into<Il2CppString>)

PlaySelect(::unity::Il2CppString) overload

Source

fn stop(self)

Stop() overload

Source

fn tick(self, menu: impl Into<MyRoomSoundMenu>)

Tick(crate::app::myroomsoundmenu::MyRoomSoundMenu) overload

Source

fn close(self)

Close() overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IBgmPlayer> IBgmPlayerMethods for __T

Available on crate feature app-bgmplayer only.