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.

40 lines
920B

  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. public UECSSveltoEGID(EGID egid) { this.egid = egid; }
  9. }
  10. public struct UECSSveltoGroupID : ISharedComponentData
  11. {
  12. public readonly ExclusiveGroupStruct group;
  13. public UECSSveltoGroupID(ExclusiveGroupStruct exclusiveGroup)
  14. {
  15. @group = exclusiveGroup;
  16. }
  17. public static implicit operator ExclusiveGroupStruct(UECSSveltoGroupID group)
  18. {
  19. return group.@group;
  20. }
  21. }
  22. public struct UpdateUECSEntityAfterSubmission : IComponentData
  23. {
  24. public EGID egid;
  25. public UpdateUECSEntityAfterSubmission(EGID egid) { this.egid = egid; }
  26. }
  27. public struct UECSEntityComponent : IEntityComponent
  28. {
  29. public Entity uecsEntity;
  30. }
  31. }
  32. #endif