summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-04 21:07:11 +0200
committerHampusM <hampus@hampusmat.com>2024-04-04 21:07:11 +0200
commit3c8c135b9f41acf6a170822c0cba21a402f881d6 (patch)
tree368761f0445ac2b882bae9c62e2e840e1392e495 /ecs/src/component.rs
parent171666ba9af47d762ccc2344f11fa5946d49679d (diff)
feat(ecs): allow components to be specified to be dropped last
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r--ecs/src/component.rs2
1 files changed, 2 insertions, 0 deletions
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;