Mirror of Svelto.ECS because we're a fan of it
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

26 wiersze
683B

  1. #if UNITY_NATIVE
  2. using Svelto.DataStructures;
  3. namespace Svelto.ECS.Native
  4. {
  5. public readonly struct NativeEntityRemove
  6. {
  7. readonly AtomicNativeBags _removeQueue;
  8. readonly int _indexRemove;
  9. internal NativeEntityRemove(AtomicNativeBags EGIDsToRemove, int indexRemove)
  10. {
  11. _removeQueue = EGIDsToRemove;
  12. _indexRemove = indexRemove;
  13. }
  14. public void RemoveEntity(EGID egid, int threadIndex)
  15. {
  16. var simpleNativeBag = _removeQueue.GetBag(threadIndex);
  17. simpleNativeBag.Enqueue(_indexRemove);
  18. simpleNativeBag.Enqueue(egid);
  19. }
  20. }
  21. }
  22. #endif