From 5f4118d38783c01d35ca0907d07edb7af30e2fbc Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 2 Nov 2026 03:01:00 +0100 Subject: feat(engine-ecs): rename system::SystemComponent to Function and make it public --- engine-ecs/src/system.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine-ecs/src/system.rs') diff --git a/engine-ecs/src/system.rs b/engine-ecs/src/system.rs index e0eac57..b79f20c 100644 --- a/engine-ecs/src/system.rs +++ b/engine-ecs/src/system.rs @@ -163,8 +163,10 @@ impl Callbacks for NoCallbacks fn on_created(&mut self, _world: &mut World, _metadata: Metadata) {} } +/// System & observer function component. Intentionally not runnable outside of this +/// crate. #[derive(Debug, Component)] -pub(crate) struct SystemComponent +pub struct Function { pub(crate) system: TypeErased, } -- cgit v1.2.3-18-g5258