From 0b5210dbe3a81c4dcfff52640e7645f3041d3f7c Mon Sep 17 00:00:00 2001 From: Max Whitehead Date: Sun, 1 Sep 2024 22:31:29 -0700 Subject: [PATCH] fix: impl 'remove_all_systems' + update bones_framework --- Cargo.lock | 26 +++++++++++++------------- src/core/player/state/stage.rs | 4 ++++ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index da79e3ea31..38004b5fc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1198,7 +1198,7 @@ dependencies = [ [[package]] name = "bones_asset" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "anyhow", "append-only-vec", @@ -1229,7 +1229,7 @@ dependencies = [ [[package]] name = "bones_bevy_renderer" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "anyhow", "bevy", @@ -1246,7 +1246,7 @@ dependencies = [ [[package]] name = "bones_ecs" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "anyhow", "atomicell", @@ -1263,7 +1263,7 @@ dependencies = [ [[package]] name = "bones_ecs_macros" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "bones_ecs_macros_core", "proc-macro2", @@ -1272,7 +1272,7 @@ dependencies = [ [[package]] name = "bones_ecs_macros_core" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "proc-macro2", "quote", @@ -1282,7 +1282,7 @@ dependencies = [ [[package]] name = "bones_framework" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "anyhow", "async-channel 1.9.0", @@ -1331,7 +1331,7 @@ dependencies = [ [[package]] name = "bones_lib" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "bones_ecs", "instant", @@ -1340,7 +1340,7 @@ dependencies = [ [[package]] name = "bones_matchmaker_proto" version = "0.2.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "iroh-net", "serde", @@ -1349,7 +1349,7 @@ dependencies = [ [[package]] name = "bones_schema" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "append-only-vec", "bones_schema_macros", @@ -1367,7 +1367,7 @@ dependencies = [ [[package]] name = "bones_schema_macros" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "proc-macro2", "quote", @@ -1377,7 +1377,7 @@ dependencies = [ [[package]] name = "bones_scripting" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "async-channel 1.9.0", "bevy_tasks", @@ -1394,7 +1394,7 @@ dependencies = [ [[package]] name = "bones_utils" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "bones_utils_macros", "branches", @@ -1415,7 +1415,7 @@ dependencies = [ [[package]] name = "bones_utils_macros" version = "0.3.0" -source = "git+https://github.com/fishfolk/bones#280620cf398974894696a5b40c96e73315965a1d" +source = "git+https://github.com/fishfolk/bones#8b698f6c54b07bfa7e29ffcf6a5dc3b112debe41" dependencies = [ "quote", "venial", diff --git a/src/core/player/state/stage.rs b/src/core/player/state/stage.rs index 37e2cd753b..2badcbb357 100644 --- a/src/core/player/state/stage.rs +++ b/src/core/player/state/stage.rs @@ -100,4 +100,8 @@ impl SystemStage for PlayerStateStageImpl { fn add_system(&mut self, system: StaticSystem<(), ()>) { self.systems.push(system.system()) } + + fn remove_all_systems(&mut self) { + self.systems.clear(); + } }