mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
simple refactoring
This commit is contained in:
parent
b4af20d2ea
commit
bc1075eada
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user