simple refactoring

This commit is contained in:
Mikhail 2024-09-09 18:21:30 +08:00
parent b4af20d2ea
commit bc1075eada

View File

@ -820,6 +820,7 @@ namespace DCFApixels.DragonECS
}
public long Version { get { return _world.Version; } }
public IEcsPool[] Pools { get { return _world._pools; } }
public short ID { get { return _world.id; } }
public DebuggerProxy(EcsWorld world)
{
_world = world;
@ -828,23 +829,6 @@ namespace DCFApixels.DragonECS
#endregion
}
public static class EcsWorldExtenssions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsNullOrDetroyed(this EcsWorld self)
{
return self == null || self.IsDestroyed;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void ReleaseDelEntityBufferAllAuto(this EcsWorld self)
{
if (self.IsEnableReleaseDelEntBuffer)
{
self.ReleaseDelEntityBufferAll();
}
}
}
#region Callbacks Interface
public interface IEcsWorldEventListener
{
@ -903,6 +887,22 @@ namespace DCFApixels.DragonECS
#endregion
#region Extensions
public static class EcsWorldExtenssions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsNullOrDetroyed(this EcsWorld self)
{
return self == null || self.IsDestroyed;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void ReleaseDelEntityBufferAllAuto(this EcsWorld self)
{
if (self.IsEnableReleaseDelEntBuffer)
{
self.ReleaseDelEntityBufferAll();
}
}
}
public static class IntExtensions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]