From 723f48d8e008d216978b8ed7d70499c972cc5a1c Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 30 Oct 2026 05:24:39 +0100 Subject: refactor(engine-ecs): replace uid::WithUid* traits with new component traits --- engine-ecs/src/actions.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engine-ecs/src/actions.rs') diff --git a/engine-ecs/src/actions.rs b/engine-ecs/src/actions.rs index 69605b3..cef51cc 100644 --- a/engine-ecs/src/actions.rs +++ b/engine-ecs/src/actions.rs @@ -1,12 +1,17 @@ use std::borrow::Cow; use crate::bundle::Bundle; -use crate::component::{Component, IntoParts, Parts as ComponentParts}; +use crate::component::{ + Component, + IntoParts, + Parts as ComponentParts, + RemovableTuple as RemovableComponentTuple, +}; use crate::entity::Name as EntityName; use crate::event::component::Removed; use crate::pair::Pair; use crate::system::{Metadata as SystemMetadata, Param as SystemParam}; -use crate::uid::{Uid, WithUidTuple}; +use crate::uid::Uid; use crate::{ActionQueue, World}; /// Used to to queue up actions for a [`World`] to perform. @@ -174,9 +179,9 @@ impl Actions<'_> } /// Queues up removing component(s) from a entity at the end of the current tick. - pub fn remove_comps(&mut self, entity_uid: Uid) + pub fn remove_comps(&mut self, entity_uid: Uid) { - self.remove_components(entity_uid, Ids::uids()); + self.remove_components(entity_uid, Components::ids()); } /// Queues up setting the target of a entity's pair at the end of the current tick. -- cgit v1.2.3-18-g5258