summaryrefslogtreecommitdiff
path: root/ecs/src/system
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-08 20:47:35 +0200
committerHampusM <hampus@hampusmat.com>2024-06-15 16:32:24 +0200
commit69d90ece7f54996f0f51fc120a38d37717c5248e (patch)
treefe2de83e81648762778c1a77041293526c3db9d0 /ecs/src/system
parentbef61b765de52d14a52c3df86f8b3766846be272 (diff)
perf(ecs): store components using archetypes
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