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.

31 lines
970B

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