| | 1 | | using DCL.ECS7; |
| | 2 | | using DCL.ECS7.InternalComponents; |
| | 3 | | using DCL.ECSComponents; |
| | 4 | | using DCL.ECSRuntime; |
| | 5 | |
|
| | 6 | | public readonly struct ComponentGroups : IComponentGroups |
| | 7 | | { |
| 0 | 8 | | public IECSReadOnlyComponentsGroup<InternalMaterial, InternalTexturizable> texturizableGroup { get; } |
| 0 | 9 | | public IECSReadOnlyComponentsGroup<InternalColliders, PBOnPointerDown> pointerDownGroup { get; } |
| 0 | 10 | | public IECSReadOnlyComponentsGroup<InternalColliders, PBOnPointerUp> pointerUpGroup { get; } |
| 0 | 11 | | public IECSReadOnlyComponentsGroup<InternalRenderers, InternalVisibility> visibilityGroup { get; } |
| | 12 | |
|
| | 13 | | public ComponentGroups(ECSComponentsManager componentsManager) |
| | 14 | | { |
| 2 | 15 | | texturizableGroup = componentsManager.CreateComponentGroup<InternalMaterial, InternalTexturizable> |
| | 16 | | ((int)InternalECSComponentsId.MATERIAL, (int)InternalECSComponentsId.TEXTURIZABLE); |
| | 17 | |
|
| 2 | 18 | | pointerDownGroup = componentsManager.CreateComponentGroup<InternalColliders, PBOnPointerDown> |
| | 19 | | ((int)InternalECSComponentsId.COLLIDER_POINTER, ComponentID.ON_POINTER_DOWN); |
| | 20 | |
|
| 2 | 21 | | pointerUpGroup = componentsManager.CreateComponentGroup<InternalColliders, PBOnPointerUp> |
| | 22 | | ((int)InternalECSComponentsId.COLLIDER_POINTER, ComponentID.ON_POINTER_UP); |
| | 23 | |
|
| 2 | 24 | | visibilityGroup = componentsManager.CreateComponentGroup<InternalRenderers, InternalVisibility> |
| | 25 | | ((int)InternalECSComponentsId.RENDERERS, (int)InternalECSComponentsId.VISIBILITY); |
| 2 | 26 | | } |
| | 27 | | } |