From ea24e966ef6f0eef453950b6e9c7ce7de0fd488e Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 7 Jan 2021 16:28:22 -0600 Subject: [PATCH] Restore missing derives. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, }