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.

EntitiesDB.References.cs 985B

1234567891011121314151617181920212223242526272829303132
  1. using System.Runtime.CompilerServices;
  2. using Svelto.ECS.Reference;
  3. namespace Svelto.ECS
  4. {
  5. public partial class EntitiesDB
  6. {
  7. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  8. public bool TryGetEGID(EntityReference entityReference, out EGID egid)
  9. {
  10. return _entityReferencesMap.TryGetEGID(entityReference, out egid);
  11. }
  12. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  13. public EGID GetEGID(EntityReference entityReference)
  14. {
  15. return _entityReferencesMap.GetEGID(entityReference);
  16. }
  17. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  18. public EnginesRoot.LocatorMap GetEntityLocator()
  19. {
  20. return _entityReferencesMap;
  21. }
  22. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  23. public EntityReference GetEntityReference(EGID egid)
  24. {
  25. return _entityReferencesMap.GetEntityReference(egid);
  26. }
  27. }
  28. }