Mirror of Svelto.ECS because we're a fan of it
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

26 satır
690B

  1. #if UNITY_NATIVE
  2. using Svelto.ECS.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.GetBuffer(threadIndex);
  17. simpleNativeBag.Enqueue(_indexRemove);
  18. simpleNativeBag.Enqueue(egid);
  19. }
  20. }
  21. }
  22. #endif