From 2a8f00338716d2a3696cb1f2c144d0dfbf2517f1 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 16 Dec 2020 03:15:20 -0600 Subject: [PATCH] Update for latest Bevy changes. --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8c9ac96..bf3846a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,7 +85,7 @@ impl AssetLoader for BufferAssetLoader { #[derive(Default)] struct Buffers(HashMap>); -fn buffer_creation_system( +fn buffer_creation( context: Res, mut buffers: ResMut, mut event_reader: Local>>, @@ -162,7 +162,7 @@ impl DerefMut for GlobalEffects { } } -fn source_system( +fn source_update( context: Res, buffers: Res, mut global_effects: ResMut, @@ -210,7 +210,7 @@ fn source_system( #[reflect(Component)] pub struct Listener; -fn update_listener_system(context: ResMut, query: Query<(&Listener, Option<&Transform>)>) { +fn listener_update(context: ResMut, query: Query<(&Listener, Option<&Transform>)>) { for (_, transform) in query.iter() { if let Some(transform) = transform { let matrix = transform.compute_matrix().inverse(); @@ -249,8 +249,8 @@ impl Plugin for OpenAlPlugin { .add_resource(Buffers::default()) .add_resource(GlobalEffects::default()) .register_type::() - .add_system(buffer_creation_system) - .add_system(source_system) - .add_system(update_listener_system); + .add_system(buffer_creation.system()) + .add_system(source_update.system()) + .add_system(listener_update.system()); } }