mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-19 10:34:35 +08:00
24 lines
643 B
C#
24 lines
643 B
C#
namespace DCFApixels.DragonECS
|
|
{
|
|
public sealed class DebugModule : IEcsModule
|
|
{
|
|
public const string DEBUG_LAYER = nameof(DEBUG_LAYER);
|
|
public EcsWorld[] _worlds;
|
|
|
|
public DebugModule(params EcsWorld[] worlds)
|
|
{
|
|
_worlds = worlds;
|
|
}
|
|
|
|
void IEcsModule.Import(EcsPipeline.Builder b)
|
|
{
|
|
b.Layers.Insert(EcsConsts.POST_END_LAYER, DEBUG_LAYER);
|
|
//b.Add(new PipelineDebugSystem(), DEBUG_LAYER);
|
|
foreach (var world in _worlds)
|
|
{
|
|
//b.Add(new WorldDebugSystem(world), DEBUG_LAYER);
|
|
}
|
|
}
|
|
}
|
|
}
|