update DebuggerProxy

This commit is contained in:
Mikhail 2024-04-29 21:59:33 +08:00
parent 7ae2440b92
commit e2b35ee860
2 changed files with 18 additions and 3 deletions

View File

@ -651,11 +651,11 @@ namespace DCFApixels.DragonECS
internal class DebuggerProxy
{
private EcsProcess<TProcess> _process;
public IEnumerable<TypeMeta> Systems
public IEnumerable<SystemInfoWrapper> 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
}

View File

@ -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;