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.

32 lines
985B

  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. }