mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
fix
This commit is contained in:
parent
d7f94dda3e
commit
9fcb1aee04
@ -73,7 +73,7 @@ namespace DCFApixels.DragonECS.Core.Internal
|
|||||||
newHandledPtr->ID = id;
|
newHandledPtr->ID = id;
|
||||||
newHandledPtr->ByteLength = byteLength;
|
newHandledPtr->ByteLength = byteLength;
|
||||||
|
|
||||||
_debugInfos[id].stackTrace = new StackTrace();
|
_debugInfos[id].stackTrace = new System.Diagnostics.StackTrace();
|
||||||
_debugInfos[id].type = type;
|
_debugInfos[id].type = type;
|
||||||
_debugInfos[id].handler = handler;
|
_debugInfos[id].handler = handler;
|
||||||
#endif
|
#endif
|
||||||
@ -131,7 +131,7 @@ namespace DCFApixels.DragonECS.Core.Internal
|
|||||||
Meta* newHandledPtr = (Meta*)Marshal.ReAllocHGlobal((IntPtr)target.GetHandledPtr(), (IntPtr)newByteLength + sizeof(Meta));
|
Meta* newHandledPtr = (Meta*)Marshal.ReAllocHGlobal((IntPtr)target.GetHandledPtr(), (IntPtr)newByteLength + sizeof(Meta));
|
||||||
Handler handler = Handler.FromHandledPtr(newHandledPtr);
|
Handler handler = Handler.FromHandledPtr(newHandledPtr);
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
_debugInfos[newHandledPtr->ID].stackTrace = new StackTrace();
|
_debugInfos[newHandledPtr->ID].stackTrace = new System.Diagnostics.StackTrace();
|
||||||
_debugInfos[newHandledPtr->ID].type = newType;
|
_debugInfos[newHandledPtr->ID].type = newType;
|
||||||
_debugInfos[newHandledPtr->ID].handler = handler;
|
_debugInfos[newHandledPtr->ID].handler = handler;
|
||||||
#endif
|
#endif
|
||||||
@ -188,12 +188,12 @@ namespace DCFApixels.DragonECS.Core.Internal
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[DebuggerDisplay("{handler.DebuggerDisplay()}")]
|
[System.Diagnostics.DebuggerDisplay("{handler.DebuggerDisplay()}")]
|
||||||
#endif
|
#endif
|
||||||
internal struct HandlerDebugInfo
|
internal struct HandlerDebugInfo
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
public StackTrace stackTrace;
|
public System.Diagnostics.StackTrace stackTrace;
|
||||||
public Type type;
|
public Type type;
|
||||||
public Handler handler;
|
public Handler handler;
|
||||||
#endif
|
#endif
|
||||||
@ -206,8 +206,8 @@ namespace DCFApixels.DragonECS.Core.Internal
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[DebuggerDisplay("{DebuggerDisplay()}")]
|
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay()}")]
|
||||||
[DebuggerTypeProxy(typeof(DebuggerProxy))]
|
[System.Diagnostics.DebuggerTypeProxy(typeof(DebuggerProxy))]
|
||||||
#endif
|
#endif
|
||||||
public readonly struct Handler
|
public readonly struct Handler
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user