mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
simple refactoring
This commit is contained in:
parent
6c1e999a31
commit
8723c4a706
@ -699,10 +699,10 @@ namespace DCFApixels.DragonECS
|
|||||||
_source = source;
|
_source = source;
|
||||||
_mask = mask;
|
_mask = mask;
|
||||||
|
|
||||||
_sortIncBuffer = new UnsafeArray<int>(_mask._inc.Length, true);
|
_sortIncBuffer = new UnsafeArray<int>(_mask._inc.Length);
|
||||||
_sortExcBuffer = new UnsafeArray<int>(_mask._exc.Length, true);
|
_sortExcBuffer = new UnsafeArray<int>(_mask._exc.Length);
|
||||||
_sortIncChunckBuffer = new UnsafeArray<EcsMaskChunck>(_mask._incChunckMasks.Length, true);
|
_sortIncChunckBuffer = new UnsafeArray<EcsMaskChunck>(_mask._incChunckMasks.Length);
|
||||||
_sortExcChunckBuffer = new UnsafeArray<EcsMaskChunck>(_mask._excChunckMasks.Length, true);
|
_sortExcChunckBuffer = new UnsafeArray<EcsMaskChunck>(_mask._excChunckMasks.Length);
|
||||||
|
|
||||||
for (int i = 0; i < _sortIncBuffer.Length; i++)
|
for (int i = 0; i < _sortIncBuffer.Length; i++)
|
||||||
{
|
{
|
||||||
|
@ -113,10 +113,7 @@ namespace DCFApixels.DragonECS
|
|||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (_isEnableAutoReleaseDelEntBuffer)
|
ReleaseDelEntityBufferAll();
|
||||||
{
|
|
||||||
ReleaseDelEntityBufferAll();
|
|
||||||
}
|
|
||||||
return _entityDispenser.UsedToEcsSpan(id);
|
return _entityDispenser.UsedToEcsSpan(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user