This commit is contained in:
Mikhail 2024-03-07 21:24:16 +08:00
parent 0a093763a2
commit 8ac45e7b17
2 changed files with 9 additions and 4 deletions

View File

@ -103,7 +103,12 @@ namespace DCFApixels.DragonECS
return _entityDispenser.UsedToEcsSpan(id); return _entityDispenser.UsedToEcsSpan(id);
} }
} }
public ReadOnlySpan<IEcsPoolImplementation> AllPools public int PoolsCount
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get { return _poolsCount; }
}
public ReadOnlySpan<IEcsPool> AllPools
{ {
// new ReadOnlySpan<IEcsPoolImplementation>(pools, 0, _poolsCount); // new ReadOnlySpan<IEcsPoolImplementation>(pools, 0, _poolsCount);
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
@ -117,7 +122,7 @@ namespace DCFApixels.DragonECS
{ {
if (configs == null) { configs = ConfigContainer.Empty; } if (configs == null) { configs = ConfigContainer.Empty; }
bool nullWorld = this is NullWorld; 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}"); EcsDebug.PrintWarning($"The world identifier cannot be {NULL_WORLD_ID}");
} }

View File

@ -1,5 +1,5 @@
using System.Collections; using System;
using System; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
namespace DCFApixels.DragonECS namespace DCFApixels.DragonECS