From 3c117bcd9455ffbcec5cd59dab37db0786e15e02 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 29 Nov 2026 21:16:11 +0100 Subject: feat(engine-ecs): change meaning of component name to type identifier --- engine-ecs/src/sole.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine-ecs/src/sole.rs') diff --git a/engine-ecs/src/sole.rs b/engine-ecs/src/sole.rs index cf5283b..ee1da7a 100644 --- a/engine-ecs/src/sole.rs +++ b/engine-ecs/src/sole.rs @@ -1,4 +1,5 @@ use std::any::{type_name, Any}; +use std::borrow::Cow; use std::fmt::Debug; use crate::component::{ @@ -17,7 +18,7 @@ pub trait Sole: Any + IntoComponentParts + ComponentWithAssociatedId Self: Sized; /// Returns the name of this component. - fn name(&self) -> &'static str; + fn name() -> Cow<'static, str>; } /// Marker component for the entities of soles. -- cgit v1.2.3-18-g5258