| | 1 | | using DCL.ECS7.InternalComponents; |
| | 2 | | using DCL.ECSRuntime; |
| | 3 | |
|
| | 4 | | public readonly struct ComponentGroups : IComponentGroups |
| | 5 | | { |
| 1 | 6 | | public IECSReadOnlyComponentsGroup<InternalMaterial, InternalTexturizable> texturizableGroup { get; } |
| 1 | 7 | | public IECSReadOnlyComponentsGroup<InternalRenderers, InternalVisibility> visibilityGroup { get; } |
| | 8 | |
|
| | 9 | | public ComponentGroups(ECSComponentsManager componentsManager) |
| | 10 | | { |
| 1 | 11 | | texturizableGroup = componentsManager.CreateComponentGroup<InternalMaterial, InternalTexturizable> |
| | 12 | | ((int)InternalECSComponentsId.MATERIAL, (int)InternalECSComponentsId.TEXTURIZABLE); |
| | 13 | |
|
| 1 | 14 | | visibilityGroup = componentsManager.CreateComponentGroup<InternalRenderers, InternalVisibility> |
| | 15 | | ((int)InternalECSComponentsId.RENDERERS, (int)InternalECSComponentsId.VISIBILITY); |
| 1 | 16 | | } |
| | 17 | | } |