mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
add EcsGroup.Upsize
This commit is contained in:
parent
e84a26af02
commit
c64ffe41f0
@ -309,6 +309,18 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Upsize
|
||||
public void Upsize(int minSize)
|
||||
{
|
||||
if (minSize >= _dense.Length)
|
||||
{
|
||||
Array.Resize(ref _dense, ArrayUtility.NormalizeSizeToPowerOfTwo_ClampOverflow(minSize));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region CopyFrom/Clone/Slice/ToSpan/ToArray
|
||||
public void CopyFrom(EcsGroup group)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user