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.

22 lines
546B

  1. using Svelto.DataStructures;
  2. namespace Svelto.ECS.Internal
  3. {
  4. public struct NativeEntityIDs: IEntityIDs
  5. {
  6. public NativeEntityIDs(NB<SveltoDictionaryNode<uint>> native)
  7. {
  8. _native = native;
  9. }
  10. public void Update(in NB<SveltoDictionaryNode<uint>> unsafeKeys)
  11. {
  12. _native = unsafeKeys;
  13. }
  14. public uint this[uint index] => _native[index].key;
  15. public uint this[int index] => _native[index].key;
  16. NB<SveltoDictionaryNode<uint>> _native;
  17. }
  18. }