mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
update DebuggerProxy
This commit is contained in:
parent
7ae2440b92
commit
e2b35ee860
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user