diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-02 03:01:00 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-02 03:01:00 +0100 |
| commit | 5f4118d38783c01d35ca0907d07edb7af30e2fbc (patch) | |
| tree | b00be7b024097608d6db111752e16f33991573ff /engine-ecs/src/system.rs | |
| parent | 5c8096e2af94601c0d3c00c29f8fb4616c0a08d6 (diff) | |
feat(engine-ecs): rename system::SystemComponent to Function and make it public
Diffstat (limited to 'engine-ecs/src/system.rs')
| -rw-r--r-- | engine-ecs/src/system.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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, } |
