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