summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine-ecs/src/lib.rs17
1 files changed, 9 insertions, 8 deletions
diff --git a/engine-ecs/src/lib.rs b/engine-ecs/src/lib.rs
index 878a28c..a426b0b 100644
--- a/engine-ecs/src/lib.rs
+++ b/engine-ecs/src/lib.rs
@@ -16,7 +16,11 @@ use crate::component::{
Parts as ComponentParts,
Sequence as ComponentSequence,
};
-use crate::entity::{Declaration as EntityDeclaration, Handle as EntityHandle, Name as EntityName};
+use crate::entity::{
+ Declaration as EntityDeclaration,
+ Handle as EntityHandle,
+ Name as EntityName,
+};
use crate::error::{
err_handler_panic,
HandlerFn as ErrorHandlerFn,
@@ -114,7 +118,6 @@ impl World
self.error_handler = err_handler;
}
-
pub fn stop_after_tick(&self)
{
self.stop.store(true, Ordering::Relaxed);
@@ -172,10 +175,9 @@ impl World
SoleT::id(),
[
sole.into_parts(),
- EntityName {
- name: name.into()
- }.into_parts()
- ]);
+ EntityName { name: name.into() }.into_parts(),
+ ],
+ );
Ok(())
}
@@ -677,7 +679,7 @@ impl World
self,
err,
ErrorMetadata {
- source_name: observer.name(),
+ source_name: observer.system.name(),
source_kind: ErrorSourceKind::Observer,
},
)
@@ -780,4 +782,3 @@ impl ActionQueue
#[derive(Debug, thiserror::Error)]
#[error("Sole {0} already exists")]
pub struct SoleAlreadyExistsError(pub &'static str);
-