feat: ecs audio system

This commit is contained in:
2025-08-15 20:28:47 -05:00
parent 342f378860
commit fa12611c69
6 changed files with 81 additions and 3 deletions

View File

@@ -107,3 +107,12 @@ pub struct DeltaTime(pub f32);
#[derive(Resource, Default)]
pub struct RenderDirty(pub bool);
/// Resource for tracking audio state
#[derive(Resource, Debug, Clone, Default)]
pub struct AudioState {
/// Whether audio is currently muted
pub muted: bool,
/// Current sound index for cycling through eat sounds
pub sound_index: usize,
}