diff --git a/src/lib.rs b/src/lib.rs index 3fa018a..45e78ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,7 +119,7 @@ fn buffer_creation( } } -#[derive(Clone, Copy, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq, Reflect)] pub enum SoundState { Stopped, Playing, @@ -132,12 +132,14 @@ impl Default for SoundState { } } +#[derive(Reflect)] pub struct Sound { pub buffer: Handle, pub state: SoundState, pub gain: f32, pub looping: bool, pub pitch: f32, + #[reflect(ignore)] pub source: Option, }