diff --git a/src/Collections/EcsGroup.cs b/src/Collections/EcsGroup.cs index fe112d7..4ce8cf5 100644 --- a/src/Collections/EcsGroup.cs +++ b/src/Collections/EcsGroup.cs @@ -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)) diff --git a/src/Collections/EcsSpan.cs b/src/Collections/EcsSpan.cs index 1a03d80..7494ea0 100644 --- a/src/Collections/EcsSpan.cs +++ b/src/Collections/EcsSpan.cs @@ -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; } diff --git a/src/Executors/EcsWhereExecutor.cs b/src/Executors/EcsWhereExecutor.cs index 0ec22e2..6c7ecde 100644 --- a/src/Executors/EcsWhereExecutor.cs +++ b/src/Executors/EcsWhereExecutor.cs @@ -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