summaryrefslogtreecommitdiff
path: root/ecs/src/sole.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-11 19:02:39 +0200
committerHampusM <hampus@hampusmat.com>2024-04-11 19:06:58 +0200
commitd435d9b80c46f995d56d385bc8a0de29e6d865cb (patch)
treee4db4307b214655bb434fb8a72faa2f39b208a53 /ecs/src/sole.rs
parent52d737d359bba03b72daefdf1d2b4aac2b543b31 (diff)
feat(ecs): add specifying to drop soles last
Diffstat (limited to 'ecs/src/sole.rs')
-rw-r--r--ecs/src/sole.rs2
1 files changed, 2 insertions, 0 deletions
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;