mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54:35 +08:00
add EcsWorld.GetMaskQueryExecutors
This commit is contained in:
parent
f12c01ed10
commit
4069f9b970
@ -30,6 +30,26 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
return (TExecutor)executor;
|
||||
}
|
||||
|
||||
public void GetMaskQueryExecutors(List<MaskQueryExecutor> result, ref int version)
|
||||
{
|
||||
if(_executorCoures == null || version == _executorCoures.Count)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
result.Clear();
|
||||
|
||||
foreach (var item in _executorCoures)
|
||||
{
|
||||
if(item.Value is MaskQueryExecutor x)
|
||||
{
|
||||
result.Add(x);
|
||||
}
|
||||
}
|
||||
|
||||
version = _executorCoures.Count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user