summaryrefslogtreecommitdiff
path: root/ecs/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r--ecs/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs
index a643bec..78e526f 100644
--- a/ecs/src/lib.rs
+++ b/ecs/src/lib.rs
@@ -69,9 +69,7 @@ impl World
{
let mut world = Self::default();
- world
- .add_sole(Stats::default())
- .expect("World already has stats sole");
+ world.add_sole(Stats::default()).ok();
world
}
@@ -93,6 +91,7 @@ impl World
}
#[cfg_attr(feature = "debug", tracing::instrument(skip_all))]
+ #[doc(hidden)]
pub fn create_entity_with_uid<Comps>(&self, components: Comps, entity_uid: Uid)
where
Comps: ComponentSequence + TupleReduce<TypeTransformComponentsToAddedEvents>,