mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-11-13 00:55:55 +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 long Version { get { return _world.Version; } }
|
||||||
public IEcsPool[] Pools { get { return _world._pools; } }
|
public IEcsPool[] Pools { get { return _world._pools; } }
|
||||||
|
public short ID { get { return _world.id; } }
|
||||||
public DebuggerProxy(EcsWorld world)
|
public DebuggerProxy(EcsWorld world)
|
||||||
{
|
{
|
||||||
_world = world;
|
_world = world;
|
||||||
@ -828,23 +829,6 @@ namespace DCFApixels.DragonECS
|
|||||||
#endregion
|
#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
|
#region Callbacks Interface
|
||||||
public interface IEcsWorldEventListener
|
public interface IEcsWorldEventListener
|
||||||
{
|
{
|
||||||
@ -903,6 +887,22 @@ namespace DCFApixels.DragonECS
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Extensions
|
#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
|
public static class IntExtensions
|
||||||
{
|
{
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user