wecs_core/world/param.rs
1use crate::system::SystemParam;
2
3use super::World;
4
5impl<'w> SystemParam for &'w World {
6 type Item<'world> = &'world World;
7
8 fn get_param<'world>(world: super::UnsafeWorldCell<'world>) -> Self::Item<'world> {
9 world.world()
10 }
11}
12
13impl<'w> SystemParam for &'w mut World {
14 type Item<'world> = &'world mut World;
15
16 fn get_param<'world>(mut world: super::UnsafeWorldCell<'world>) -> Self::Item<'world> {
17 world.world_mut()
18 }
19}