Mirror of Svelto.ECS because we're a fan of it
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

38 lignes
1.2KB

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