|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- #if UNITY_ECS
- using Unity.Entities;
-
- namespace Svelto.ECS.Extensions.Unity
- {
- public struct UECSSveltoEGID : IComponentData
- {
- public EGID egid;
-
- public UECSSveltoEGID(EGID egid) { this.egid = egid; }
- }
-
- public struct UECSSveltoGroupID : ISharedComponentData
- {
- public readonly uint group;
-
- public UECSSveltoGroupID(ExclusiveGroupStruct exclusiveGroup)
- {
- @group = (uint) exclusiveGroup;
- }
-
- public static implicit operator ExclusiveGroupStruct(UECSSveltoGroupID group)
- {
- return new ExclusiveGroupStruct(group.@group);
- }
- }
-
- public struct UpdateUECSEntityAfterSubmission : IComponentData
- {
- public EGID egid;
-
- public UpdateUECSEntityAfterSubmission(EGID egid) { this.egid = egid; }
- }
-
- public struct UECSEntityComponent : IEntityComponent
- {
- public Entity uecsEntity;
- }
- }
- #endif
|