mirror of
https://github.com/lightsoutgames/bevy_openal.git
synced 2024-11-21 17:05:55 +00:00
Restore missing derives.
This commit is contained in:
parent
2410d00b8c
commit
ea24e966ef
|
@ -119,7 +119,7 @@ fn buffer_creation(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Reflect)]
|
||||||
pub enum SoundState {
|
pub enum SoundState {
|
||||||
Stopped,
|
Stopped,
|
||||||
Playing,
|
Playing,
|
||||||
|
@ -132,12 +132,14 @@ impl Default for SoundState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Reflect)]
|
||||||
pub struct Sound {
|
pub struct Sound {
|
||||||
pub buffer: Handle<Buffer>,
|
pub buffer: Handle<Buffer>,
|
||||||
pub state: SoundState,
|
pub state: SoundState,
|
||||||
pub gain: f32,
|
pub gain: f32,
|
||||||
pub looping: bool,
|
pub looping: bool,
|
||||||
pub pitch: f32,
|
pub pitch: f32,
|
||||||
|
#[reflect(ignore)]
|
||||||
pub source: Option<StaticSource>,
|
pub source: Option<StaticSource>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user