From 4f7307d29e93264866b66d95dee52e52b5a2f911 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 31 Oct 2023 15:09:56 -0700 Subject: [PATCH] add Update to System --- src/Rev2/Compatibility/System.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Rev2/Compatibility/System.cs b/src/Rev2/Compatibility/System.cs index d4ddb89..71233dc 100644 --- a/src/Rev2/Compatibility/System.cs +++ b/src/Rev2/Compatibility/System.cs @@ -2,11 +2,13 @@ namespace MoonTools.ECS.Rev2.Compatibility; -public class System : Manipulator +public abstract class System : Manipulator { public FilterBuilder FilterBuilder => World.FilterBuilder; - public System(World world) : base(world) { } + protected System(World world) : base(world) { } + + public abstract void Update(); protected ReadOnlySpan ReadMessages() where T : unmanaged => World.ReadMessages(); protected T ReadMessage() where T : unmanaged => World.ReadMessage();