| | | 1 | | using FixedMathSharp; |
| | | 2 | | |
| | | 3 | | namespace Trailblazer.Pathing; |
| | | 4 | | |
| | | 5 | | internal readonly struct PendingExternalGridChange |
| | | 6 | | { |
| | | 7 | | public PendingExternalGridChange( |
| | | 8 | | int gridSpawnToken, |
| | | 9 | | uint gridVersion, |
| | | 10 | | Vector3d boundsMin, |
| | | 11 | | Vector3d boundsMax, |
| | | 12 | | bool requiresLiveGridTouchSelection, |
| | | 13 | | bool requiresAuthoredCellBoundsSelection) |
| | | 14 | | { |
| | 2021 | 15 | | GridSpawnToken = gridSpawnToken; |
| | 2021 | 16 | | GridVersion = gridVersion; |
| | 2021 | 17 | | BoundsMin = boundsMin; |
| | 2021 | 18 | | BoundsMax = boundsMax; |
| | 2021 | 19 | | RequiresLiveGridTouchSelection = requiresLiveGridTouchSelection; |
| | 2021 | 20 | | RequiresAuthoredCellBoundsSelection = requiresAuthoredCellBoundsSelection; |
| | 2021 | 21 | | } |
| | | 22 | | |
| | | 23 | | public int GridSpawnToken { get; } |
| | | 24 | | |
| | | 25 | | public uint GridVersion { get; } |
| | | 26 | | |
| | | 27 | | public Vector3d BoundsMin { get; } |
| | | 28 | | |
| | | 29 | | public Vector3d BoundsMax { get; } |
| | | 30 | | |
| | | 31 | | public bool RequiresLiveGridTouchSelection { get; } |
| | | 32 | | |
| | | 33 | | public bool RequiresAuthoredCellBoundsSelection { get; } |
| | | 34 | | |
| | 954 | 35 | | public bool HasSelectionCriteria => RequiresLiveGridTouchSelection || RequiresAuthoredCellBoundsSelection; |
| | | 36 | | |
| | | 37 | | public ExternalGridChartRebuildRequest ToRebuildRequest(ushort gridIndex) |
| | | 38 | | { |
| | 476 | 39 | | return new ExternalGridChartRebuildRequest( |
| | 476 | 40 | | gridIndex, |
| | 476 | 41 | | BoundsMin, |
| | 476 | 42 | | BoundsMax, |
| | 476 | 43 | | RequiresLiveGridTouchSelection, |
| | 476 | 44 | | RequiresAuthoredCellBoundsSelection); |
| | | 45 | | } |
| | | 46 | | } |