diff options
Diffstat (limited to 'ecs/src/component/local.rs')
-rw-r--r-- | ecs/src/component/local.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ecs/src/component/local.rs b/ecs/src/component/local.rs index 6b2463f..b19a30b 100644 --- a/ecs/src/component/local.rs +++ b/ecs/src/component/local.rs @@ -37,7 +37,11 @@ where }; let Some(local_component) = system_ent.get_with_id_mut::<LocalComponent>( - Pair::new::<IsLocalComponent>(LocalComponent::id()).id(), + Pair::builder() + .relation::<IsLocalComponent>() + .target::<LocalComponent>() + .build() + .id(), ) else { panic!( "Local component {} of system with ID {} is uninitialized", @@ -60,7 +64,11 @@ where fn initialize(system: &mut SystemT, input: Self::Input) { system.add_local_component( - Pair::new_with_comp_target::<IsLocalComponent>(input).into_parts(), + Pair::builder() + .relation::<IsLocalComponent>() + .target_as_data(input) + .build() + .into_parts(), ); } } |