Add Module tag to module's parents

wip/source-generators
copygirl 1 year ago
parent 3d9097b41b
commit 871eb3c808
  1. 4
      src/gaemstone/ECS/Universe+Modules.cs

@ -157,6 +157,10 @@ internal class ModuleInfo
}
Entity = module.Build().CreateLookup(Type);
// Ensure that all the parent entities have Module set, too.
for (var p = Entity.Parent; p != null; p = p.Parent)
p.Add<Module>();
}
public void Enable()

Loading…
Cancel
Save