From 3c8c135b9f41acf6a170822c0cba21a402f881d6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 4 Apr 2024 21:07:11 +0200 Subject: feat(ecs): allow components to be specified to be dropped last --- ecs/src/component.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ecs/src/component.rs') diff --git a/ecs/src/component.rs b/ecs/src/component.rs index 120ba30..c1f8168 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -16,6 +16,8 @@ use crate::WorldData; pub trait Component: SystemInput + Any + TypeName { + fn drop_last(&self) -> bool; + #[doc(hidden)] fn as_any_mut(&mut self) -> &mut dyn Any; -- cgit v1.2.3-18-g5258