mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
remove EcsGroup.CapacitySparce , rename EcsSpan.Count
This commit is contained in:
parent
d2356c1588
commit
089eff6674
@ -44,11 +44,6 @@ namespace DCFApixels.DragonECS
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return _source.CapacityDense; }
|
||||
}
|
||||
public int CapacitySparce //TODO remove
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return _source.CapacitySparce; }
|
||||
}
|
||||
public bool IsReleazed
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@ -174,11 +169,6 @@ namespace DCFApixels.DragonECS
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get => _dense.Length;
|
||||
}
|
||||
public int CapacitySparce //TODO remove
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get => _sparse.Length;
|
||||
}
|
||||
public EcsReadonlyGroup Readonly
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@ -336,7 +326,7 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
for (int i = 0; i < span.Length; i++)
|
||||
for (int i = 0; i < span.Count; i++)
|
||||
{
|
||||
Add_Internal(span[i]);
|
||||
}
|
||||
@ -539,7 +529,7 @@ namespace DCFApixels.DragonECS
|
||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||
if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException();
|
||||
#endif
|
||||
if (span.Length != Count)
|
||||
if (span.Count != Count)
|
||||
return false;
|
||||
foreach (var item in span)
|
||||
if (!Has(item))
|
||||
|
@ -28,7 +28,7 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
get { return EcsWorld.GetWorld(_worldID); }
|
||||
}
|
||||
public int Length //TODO rename to Count
|
||||
public int Count
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return _values.Length; }
|
||||
@ -145,7 +145,7 @@ namespace DCFApixels.DragonECS
|
||||
public int Count { get { return _values.Length; } }
|
||||
public DebuggerProxy(EcsSpan span)
|
||||
{
|
||||
_values = new int[span.Length];
|
||||
_values = new int[span.Count];
|
||||
span._values.CopyTo(_values);
|
||||
_worldID = span._worldID;
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ namespace DCFApixels.DragonECS
|
||||
if (_lastWorldVersion != World.Version)
|
||||
{
|
||||
result = _aspect.GetIteratorFor(span).CopyToSpan(ref _filteredEntities);
|
||||
_filteredEntitiesCount = result.Length;
|
||||
_filteredEntitiesCount = result.Count;
|
||||
_lastWorldVersion = World.Version;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user