mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
Merge branch 'dev' into new_system_layers
This commit is contained in:
commit
7378763c36
@ -89,6 +89,16 @@ namespace DCFApixels.DragonECS.Internal
|
||||
public EcsSpan Execute()
|
||||
{
|
||||
Execute_Iternal();
|
||||
#if DEBUG || DRAGONECS_DEEP_DEBUG
|
||||
var newSpan = new EcsSpan(World.ID, _filteredAllEntities, _filteredAllEntitiesCount);
|
||||
foreach (var e in newSpan)
|
||||
{
|
||||
if (World.IsMatchesMask(Mask, e) == false)
|
||||
{
|
||||
Throw.DeepDebugException();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return new EcsSpan(World.ID, _filteredAllEntities, _filteredAllEntitiesCount);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@ -99,6 +109,16 @@ namespace DCFApixels.DragonECS.Internal
|
||||
return Execute();
|
||||
}
|
||||
ExecuteFor_Iternal(span);
|
||||
#if DEBUG || DRAGONECS_DEEP_DEBUG
|
||||
var newSpan = new EcsSpan(World.ID, _filteredEntities, _filteredEntitiesCount);
|
||||
foreach (var e in newSpan)
|
||||
{
|
||||
if (World.IsMatchesMask(Mask, e) == false)
|
||||
{
|
||||
Throw.DeepDebugException();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return new EcsSpan(World.ID, _filteredEntities, _filteredEntitiesCount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user