Struct pill_engine::internal::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,
pub(crate) sink_handle: Option<usize>,
entity_handle: Option<EntityHandle>,
scene_handle: Option<SceneHandle>,
deferred_update_manager: Option<DeferredUpdateManagerPointer>,
}
Fields
sound_type: SoundType
volume: f32
play_on_awake: bool
sound_handle: Option<SoundHandle>
is_playing: bool
sink_handle: Option<usize>
entity_handle: Option<EntityHandle>
scene_handle: Option<SceneHandle>
deferred_update_manager: Option<DeferredUpdateManagerPointer>
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
.