2023-04-26 16:54:27 +08:00
|
|
|
|
namespace DCFApixels.DragonECS
|
|
|
|
|
{
|
|
|
|
|
public sealed class DebugModule : IEcsModule
|
|
|
|
|
{
|
2023-05-07 00:50:44 +08:00
|
|
|
|
public const string DEBUG_LAYER = nameof(DEBUG_LAYER);
|
2023-04-26 16:54:27 +08:00
|
|
|
|
public EcsWorld[] _worlds;
|
2024-03-03 19:59:39 +08:00
|
|
|
|
|
2023-04-26 16:54:27 +08:00
|
|
|
|
public DebugModule(params EcsWorld[] worlds)
|
|
|
|
|
{
|
|
|
|
|
_worlds = worlds;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-30 18:31:03 +08:00
|
|
|
|
void IEcsModule.Import(EcsPipeline.Builder b)
|
2023-04-26 16:54:27 +08:00
|
|
|
|
{
|
2023-05-07 00:50:44 +08:00
|
|
|
|
b.Layers.Insert(EcsConsts.POST_END_LAYER, DEBUG_LAYER);
|
2024-03-03 19:59:39 +08:00
|
|
|
|
//b.Add(new PipelineDebugSystem(), DEBUG_LAYER);
|
2023-04-26 16:54:27 +08:00
|
|
|
|
foreach (var world in _worlds)
|
|
|
|
|
{
|
2024-03-03 19:59:39 +08:00
|
|
|
|
//b.Add(new WorldDebugSystem(world), DEBUG_LAYER);
|
2023-04-26 16:54:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|