| | 1 | | using DCL.ECS7; |
| | 2 | | using DCL.ECS7.ComponentWrapper.Generic; |
| | 3 | | using DCL.ECSComponents; |
| | 4 | | using DCL.ECSRuntime; |
| | 5 | | using System.Collections.Generic; |
| | 6 | |
|
| | 7 | | public record SystemsContext |
| | 8 | | { |
| | 9 | | public readonly IReadOnlyDictionary<int, ComponentWriter> ComponentWriters; |
| | 10 | | public readonly IInternalECSComponents internalEcsComponents; |
| | 11 | | public readonly IComponentGroups componentGroups; |
| | 12 | | public readonly ECSComponent<PBBillboard> billboards; |
| | 13 | | public readonly ECSComponent<ECSTransform> TransformComponent; |
| | 14 | | public readonly WrappedComponentPool<IWrappedComponent<PBCameraMode>> CameraModePool; |
| | 15 | | public readonly WrappedComponentPool<IWrappedComponent<PBPointerLock>> PointerLockPool; |
| | 16 | | public readonly WrappedComponentPool<IWrappedComponent<ECSTransform>> TransformPool; |
| | 17 | | public readonly WrappedComponentPool<IWrappedComponent<PBVideoEvent>> VideoEventPool; |
| | 18 | | public readonly WrappedComponentPool<IWrappedComponent<PBRaycastResult>> RaycastResultPool; |
| | 19 | | public readonly WrappedComponentPool<IWrappedComponent<PBGltfContainerLoadingState>> GltfContainerLoadingStatePool; |
| | 20 | | public readonly WrappedComponentPool<IWrappedComponent<PBEngineInfo>> EngineInfoPool; |
| | 21 | | public readonly WrappedComponentPool<IWrappedComponent<PBUiCanvasInformation>> UiCanvasInformationPool; |
| | 22 | | public readonly WrappedComponentPool<IWrappedComponent<PBPointerEventsResult>> PointerEventsResultPool; |
| | 23 | | public readonly WrappedComponentPool<IWrappedComponent<PBTweenState>> TweenStatePool; |
| | 24 | |
|
| 1 | 25 | | public SystemsContext( |
| | 26 | | IReadOnlyDictionary<int, ComponentWriter> componentWriters, |
| | 27 | | IInternalECSComponents internalEcsComponents, |
| | 28 | | IComponentGroups componentGroups, |
| | 29 | | ECSComponent<PBBillboard> billboards, |
| | 30 | | ECSComponent<ECSTransform> transformComponent, |
| | 31 | | WrappedComponentPool<IWrappedComponent<PBCameraMode>> cameraModePool, |
| | 32 | | WrappedComponentPool<IWrappedComponent<PBPointerLock>> pointerLockPool, |
| | 33 | | WrappedComponentPool<IWrappedComponent<ECSTransform>> transformPool, |
| | 34 | | WrappedComponentPool<IWrappedComponent<PBVideoEvent>> videoEventPool, |
| | 35 | | WrappedComponentPool<IWrappedComponent<PBRaycastResult>> raycastResultPool, |
| | 36 | | WrappedComponentPool<IWrappedComponent<PBGltfContainerLoadingState>> gltfContainerLoadingStatePool, |
| | 37 | | WrappedComponentPool<IWrappedComponent<PBEngineInfo>> engineInfoPool, |
| | 38 | | WrappedComponentPool<IWrappedComponent<PBUiCanvasInformation>> uiCanvasInformationPool, |
| | 39 | | WrappedComponentPool<IWrappedComponent<PBPointerEventsResult>> pointerEventsResultPool, |
| | 40 | | WrappedComponentPool<IWrappedComponent<PBTweenState>> tweenStatePool) |
| | 41 | | { |
| 1 | 42 | | this.internalEcsComponents = internalEcsComponents; |
| 1 | 43 | | this.componentGroups = componentGroups; |
| 1 | 44 | | this.billboards = billboards; |
| 1 | 45 | | TransformComponent = transformComponent; |
| 1 | 46 | | CameraModePool = cameraModePool; |
| 1 | 47 | | PointerLockPool = pointerLockPool; |
| 1 | 48 | | TransformPool = transformPool; |
| 1 | 49 | | ComponentWriters = componentWriters; |
| 1 | 50 | | VideoEventPool = videoEventPool; |
| 1 | 51 | | RaycastResultPool = raycastResultPool; |
| 1 | 52 | | GltfContainerLoadingStatePool = gltfContainerLoadingStatePool; |
| 1 | 53 | | EngineInfoPool = engineInfoPool; |
| 1 | 54 | | UiCanvasInformationPool = uiCanvasInformationPool; |
| 1 | 55 | | PointerEventsResultPool = pointerEventsResultPool; |
| 1 | 56 | | TweenStatePool = tweenStatePool; |
| 1 | 57 | | } |
| | 58 | | } |