| | 1 | | using DCLServices.MapRendererV2.CommonBehavior; |
| | 2 | | using DCLServices.MapRendererV2.MapLayers; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCLServices.MapRendererV2.MapCameraController |
| | 7 | | { |
| | 8 | | public readonly struct MapCameraInput |
| | 9 | | { |
| | 10 | | public readonly MapLayer EnabledLayers; |
| | 11 | | public readonly Vector2Int Position; |
| | 12 | | public readonly float Zoom; |
| | 13 | | public readonly Vector2Int TextureResolution; |
| | 14 | | public readonly Vector2Int ZoomValues; |
| | 15 | | public readonly IMapActivityOwner ActivityOwner; |
| | 16 | |
|
| | 17 | | /// <param name="enabledLayers">active layers</param> |
| | 18 | | /// <param name="position">default position</param> |
| | 19 | | /// <param name="zoom">default zoom</param> |
| | 20 | | /// <param name="textureResolution">desired texture resolution</param> |
| | 21 | | /// <param name="zoomValues">zoom thresholds in parcels</param> |
| | 22 | | public MapCameraInput(IMapActivityOwner activityOwner, MapLayer enabledLayers, Vector2Int position, float zoom, |
| | 23 | | Vector2Int textureResolution, Vector2Int zoomValues) |
| | 24 | | { |
| 10 | 25 | | EnabledLayers = enabledLayers; |
| 10 | 26 | | Position = position; |
| 10 | 27 | | Zoom = zoom; |
| 10 | 28 | | TextureResolution = textureResolution; |
| 10 | 29 | | ZoomValues = zoomValues; |
| 10 | 30 | | ActivityOwner = activityOwner; |
| 10 | 31 | | } |
| | 32 | | } |
| | 33 | | } |