diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index 622d2e3..9c7fd5a 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -103,7 +103,12 @@ namespace DCFApixels.DragonECS return _entityDispenser.UsedToEcsSpan(id); } } - public ReadOnlySpan AllPools + public int PoolsCount + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return _poolsCount; } + } + public ReadOnlySpan AllPools { // new ReadOnlySpan(pools, 0, _poolsCount); [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -117,7 +122,7 @@ namespace DCFApixels.DragonECS { if (configs == null) { configs = ConfigContainer.Empty; } bool nullWorld = this is NullWorld; - if(nullWorld == false && worldID == NULL_WORLD_ID) + if (nullWorld == false && worldID == NULL_WORLD_ID) { EcsDebug.PrintWarning($"The world identifier cannot be {NULL_WORLD_ID}"); } diff --git a/src/Utils/IConfigContainer.cs b/src/Utils/IConfigContainer.cs index 01983b0..7cb0e15 100644 --- a/src/Utils/IConfigContainer.cs +++ b/src/Utils/IConfigContainer.cs @@ -1,5 +1,5 @@ -using System.Collections; -using System; +using System; +using System.Collections; using System.Collections.Generic; namespace DCFApixels.DragonECS