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.

ManagedEntityIDs.cs 546B

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