Struct oxygengine_audio::component::AudioSourceConfig [−][src]
pub struct AudioSourceConfig { pub audio: Cow<'static, str>, pub streaming: bool, pub looped: bool, pub playback_rate: Scalar, pub volume: Scalar, pub play: bool, }
Fields
audio: Cow<'static, str>
streaming: bool
looped: bool
playback_rate: Scalar
volume: Scalar
play: bool
Implementations
impl AudioSourceConfig
[src]
impl AudioSourceConfig
[src]pub fn new(audio: Cow<'static, str>) -> Self
[src]
pub fn audio(self, value: Cow<'static, str>) -> Self
[src]
pub fn streaming(self, value: bool) -> Self
[src]
pub fn looped(self, value: bool) -> Self
[src]
pub fn playback_rate(self, value: Scalar) -> Self
[src]
pub fn volume(self, value: Scalar) -> Self
[src]
pub fn play(self, value: bool) -> Self
[src]
Trait Implementations
impl Clone for AudioSourceConfig
[src]
impl Clone for AudioSourceConfig
[src]fn clone(&self) -> AudioSourceConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for AudioSourceConfig
[src]
impl<'de> Deserialize<'de> for AudioSourceConfig
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<AudioSourceConfig> for AudioSource
[src]
impl From<AudioSourceConfig> for AudioSource
[src]fn from(config: AudioSourceConfig) -> Self
[src]
impl Prefab for AudioSourceConfig
[src]
impl Prefab for AudioSourceConfig
[src]pub fn from_prefab(data: Value) -> Result<Self, PrefabError>
[src]
pub fn from_prefab_with_extras(
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<()>
) -> Result<Self, PrefabError>
[src]
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<()>
) -> Result<Self, PrefabError>
pub fn to_prefab(&self) -> Result<Value, PrefabError>
[src]
pub fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
[src]
pub fn to_prefab_string(&self) -> Result<String, PrefabError>
[src]
pub fn post_from_prefab(&mut self)
[src]
impl PrefabProxy<AudioSourceConfig> for AudioSource
[src]
impl PrefabProxy<AudioSourceConfig> for AudioSource
[src]fn from_proxy_with_extras(
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
[src]
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
impl Serialize for AudioSourceConfig
[src]
impl Serialize for AudioSourceConfig
[src]Auto Trait Implementations
impl RefUnwindSafe for AudioSourceConfig
impl RefUnwindSafe for AudioSourceConfig
impl Send for AudioSourceConfig
impl Send for AudioSourceConfig
impl Sync for AudioSourceConfig
impl Sync for AudioSourceConfig
impl Unpin for AudioSourceConfig
impl Unpin for AudioSourceConfig
impl UnwindSafe for AudioSourceConfig
impl UnwindSafe for AudioSourceConfig
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]