Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Runtime.CompilerServices;
- using Svelto.ECS.DataStructures;
-
- namespace Svelto.ECS
- {
- public readonly struct FilteredIndices
- {
- public FilteredIndices(NativeDynamicArrayCast<uint> denseListOfIndicesToEntityComponentArray)
- {
- _denseListOfIndicesToEntityComponentArray = denseListOfIndicesToEntityComponentArray;
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public int Count() => _denseListOfIndicesToEntityComponentArray.Count();
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public uint Get(uint index) => _denseListOfIndicesToEntityComponentArray[index];
-
- readonly NativeDynamicArrayCast<uint> _denseListOfIndicesToEntityComponentArray;
- }
- }
|