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.

23 lines
547B

  1. #if UNITY_ECS
  2. using Unity.Entities;
  3. namespace Svelto.ECS.Extensions.Unity
  4. {
  5. public struct UECSSveltoEGID : IComponentData
  6. {
  7. public EGID egid;
  8. }
  9. public struct UECSSveltoGroupID : ISharedComponentData
  10. {
  11. public readonly uint group;
  12. public UECSSveltoGroupID(uint exclusiveGroup) { @group = exclusiveGroup; }
  13. public static implicit operator ExclusiveGroupStruct(UECSSveltoGroupID group)
  14. {
  15. return new ExclusiveGroupStruct(group.@group);
  16. }
  17. }
  18. }
  19. #endif