summaryrefslogtreecommitdiff
path: root/ecs/src/actions.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-03-18 14:35:11 +0100
committerHampusM <hampus@hampusmat.com>2025-03-18 14:35:11 +0100
commitc1cf1b779e66e985774dad29867a57733947b0e8 (patch)
treefdee6b1aeb24b8f5fdb645dbd2e422ef3cba719f /ecs/src/actions.rs
parent7a7d3a350b22b5555c27debff6fee4fc6100fa38 (diff)
refactor(ecs): remove Component::self_id method
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r--ecs/src/actions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs
index 184f811..7dff3a5 100644
--- a/ecs/src/actions.rs
+++ b/ecs/src/actions.rs
@@ -169,9 +169,9 @@ pub(crate) struct EventIds
#[derive(Debug)]
pub(crate) enum Action
{
- Spawn(Vec<Box<dyn Component>>, EventIds),
+ Spawn(Vec<(Uid, Box<dyn Component>)>, EventIds),
Despawn(Uid),
- AddComponents(Uid, Vec<Box<dyn Component>>, EventIds),
+ AddComponents(Uid, Vec<(Uid, Box<dyn Component>)>, EventIds),
RemoveComponents(Uid, Vec<ComponentMetadata>, EventIds),
Stop,
}