Don't add phase in InitSystem

wip/no-type-lookup
copygirl 2 years ago
parent d6c8129676
commit 60c031a119
  1. 3
      src/gaemstone.ECS/System.cs

@ -8,10 +8,9 @@ namespace gaemstone.ECS;
public static class SystemExtensions
{
public static unsafe EntityRef InitSystem(this EntityRef entity,
Entity phase, QueryDesc query, Action<Iterator> callback)
QueryDesc query, Action<Iterator> callback)
{
var world = entity.World;
entity.Add(world.DependsOn, phase);
using var alloc = TempAllocator.Use();
var desc = new ecs_system_desc_t {
entity = entity,

Loading…
Cancel
Save