summaryrefslogtreecommitdiff
path: root/ecs/src/system
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/system')
-rw-r--r--ecs/src/system/stateful.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ecs/src/system/stateful.rs b/ecs/src/system/stateful.rs
index 6c0b554..b765ff0 100644
--- a/ecs/src/system/stateful.rs
+++ b/ecs/src/system/stateful.rs
@@ -85,6 +85,13 @@ macro_rules! impl_system {
self
}
+ fn prepare(&self, world_data: &WorldData)
+ {
+ #(
+ TParam~I::handle_pre_run(world_data);
+ )*
+ }
+
fn run<'this>(&'this self, world_data: &'world WorldData)
where
'this: 'world