From 8ac45e7b173bc53d97445696848d4311a3617a4f Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:24:16 +0800 Subject: [PATCH] update --- src/EcsWorld.cs | 9 +++++++-- src/Utils/IConfigContainer.cs | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) 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