Struct pill_engine::game::AudioSourceComponent [−][src]
pub struct AudioSourceComponent {
pub sound_type: SoundType,
pub volume: f32,
pub play_on_awake: bool,
pub sound_handle: Option<SoundHandle>,
pub is_playing: bool,
// some fields omitted
}
Fields
sound_type: SoundType
volume: f32
play_on_awake: bool
sound_handle: Option<SoundHandle>
is_playing: bool
Implementations
Trait Implementations
fn destroy(
&mut self,
engine: &mut Engine,
self_scene_handle: SceneHandle,
self_entity_handle: EntityHandle
) -> Result<()>
Defines the value type that corresponds to this PillTypeMapKey
.