From e2b35ee860c00a37f4b6a5654bbd923aec634a6f Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:59:33 +0800 Subject: [PATCH] update DebuggerProxy --- src/EcsPipeline.cs | 19 +++++++++++++++++-- src/EcsWorld.cs | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/EcsPipeline.cs b/src/EcsPipeline.cs index 62bae33..43cebf9 100644 --- a/src/EcsPipeline.cs +++ b/src/EcsPipeline.cs @@ -651,11 +651,11 @@ namespace DCFApixels.DragonECS internal class DebuggerProxy { private EcsProcess _process; - public IEnumerable Systems + public IEnumerable Systems { get { - return _process._systems.Select(o => o.GetMeta()).ToArray(); + return _process._systems.Select(o => new SystemInfoWrapper(o)).ToArray(); } } public int Count @@ -666,6 +666,21 @@ namespace DCFApixels.DragonECS { _process = process; } + + public readonly struct SystemInfoWrapper + { + public readonly TProcess System; + public SystemInfoWrapper(TProcess system) + { + System = system; + } + public TypeMeta __META { get { return System.GetMeta(); } } + public override string ToString() + { + return System.GetMeta().Name; + } + } + } #endregion } diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index 80a0547..413b026 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -796,7 +796,7 @@ namespace DCFApixels.DragonECS } public long Version { get { return _world.Version; } } public IEcsPool[] Pools { get { return _world._pools; } } - public TypeMeta _TypeMeta { get { return _world.GetMeta(); } } + public TypeMeta __META { get { return _world.GetMeta(); } } public DebuggerProxy(EcsWorld world) { _world = world;