Restore missing derives.

This commit is contained in:
Nolan Darilek 2021-01-07 16:28:22 -06:00
parent 2410d00b8c
commit ea24e966ef

View File

@ -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<Buffer>,
pub state: SoundState,
pub gain: f32,
pub looping: bool,
pub pitch: f32,
#[reflect(ignore)]
pub source: Option<StaticSource>,
}