From d435d9b80c46f995d56d385bc8a0de29e6d865cb Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 11 Apr 2024 19:02:39 +0200 Subject: feat(ecs): add specifying to drop soles last --- ecs/src/sole.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ecs/src/sole.rs') diff --git a/ecs/src/sole.rs b/ecs/src/sole.rs index 014ab7d..fcff8de 100644 --- a/ecs/src/sole.rs +++ b/ecs/src/sole.rs @@ -13,6 +13,8 @@ use crate::WorldData; /// A type which has a single instance and is shared globally. pub trait Sole: Any + TypeName { + fn drop_last(&self) -> bool; + fn as_any_mut(&mut self) -> &mut dyn Any; fn as_any(&self) -> &dyn Any; -- cgit v1.2.3-18-g5258