add Update to System

rev2
cosmonaut 2023-10-31 15:09:56 -07:00
parent 1ec9b9966c
commit 4f7307d29e
1 changed files with 4 additions and 2 deletions

View File

@ -2,11 +2,13 @@
namespace MoonTools.ECS.Rev2.Compatibility; namespace MoonTools.ECS.Rev2.Compatibility;
public class System : Manipulator public abstract class System : Manipulator
{ {
public FilterBuilder FilterBuilder => World.FilterBuilder; public FilterBuilder FilterBuilder => World.FilterBuilder;
public System(World world) : base(world) { } protected System(World world) : base(world) { }
public abstract void Update();
protected ReadOnlySpan<T> ReadMessages<T>() where T : unmanaged => World.ReadMessages<T>(); protected ReadOnlySpan<T> ReadMessages<T>() where T : unmanaged => World.ReadMessages<T>();
protected T ReadMessage<T>() where T : unmanaged => World.ReadMessage<T>(); protected T ReadMessage<T>() where T : unmanaged => World.ReadMessage<T>();