summaryrefslogtreecommitdiff
path: root/engine-ecs/src/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ecs/src/actions.rs')
-rw-r--r--engine-ecs/src/actions.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/engine-ecs/src/actions.rs b/engine-ecs/src/actions.rs
index f4967df..21122c8 100644
--- a/engine-ecs/src/actions.rs
+++ b/engine-ecs/src/actions.rs
@@ -3,7 +3,6 @@ use std::borrow::Cow;
use crate::bundle::Bundle;
use crate::component::{
Component,
- IntoParts,
Parts as ComponentParts,
RemovableTuple as RemovableComponentTuple,
};
@@ -67,7 +66,7 @@ impl Actions<'_>
let components_parts = bundle
.iter_component_parts()
- .chain([EntityName { name: name.into() }.into_parts()])
+ .chain([EntityName { name: name.into() }.into()])
.collect::<Vec<_>>();
if let Some(ComponentParts { id: sole_id, .. }) = components_parts
@@ -211,7 +210,7 @@ impl Actions<'_>
.relation_id(pair_id.relation())
.target_id(new_target_id)
.build()
- .into_parts(),
+ .into(),
});
}
@@ -241,7 +240,7 @@ impl Actions<'_>
.relation_id(pair_id.relation())
.target_as_data(new_target)
.build()
- .into_parts(),
+ .into(),
});
}
@@ -271,7 +270,7 @@ impl Actions<'_>
.relation_id(new_relation_id)
.target_id(pair_id.target())
.build()
- .into_parts(),
+ .into(),
});
}
@@ -301,7 +300,7 @@ impl Actions<'_>
.relation_as_data(new_relation)
.target_id(pair_id.target())
.build()
- .into_parts(),
+ .into(),
});
}
@@ -309,8 +308,7 @@ impl Actions<'_>
/// of the sole.
pub fn create_sole<SoleT: Sole>(&mut self, sole: SoleT) -> Uid
{
- self.action_queue
- .push(Action::CreateSole(sole.into_parts()));
+ self.action_queue.push(Action::CreateSole(sole.into()));
SoleT::id()
}