File tree 1 file changed +4
-6
lines changed
Assets/Code/HexTiles/Editor
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ private void Initialise()
307
307
}
308
308
} )
309
309
. End ( )
310
- . State < EraseState > ( "Erase" )
310
+ . State < ChunkEditingState > ( "Erase" )
311
311
. Enter ( evt => selectedToolIndex = 3 )
312
312
. Update ( ( state , dt ) =>
313
313
{
@@ -754,19 +754,17 @@ private void HighlightTilesUnderMousePosition()
754
754
/// <summary>
755
755
/// State for when we're painting tiles.
756
756
/// </summary>
757
- private class PaintState : AbstractState
757
+ private class PaintState : ChunkEditingState
758
758
{
759
759
public float PaintHeight ;
760
760
761
761
public float PaintOffset ;
762
-
763
- public HashSet < HexChunk > ModifiedChunks = new HashSet < HexChunk > ( ) ;
764
762
}
765
763
766
764
/// <summary>
767
- /// State for when we're erasing tiles .
765
+ /// Base class for states that modify tile chunks .
768
766
/// </summary>
769
- private class EraseState : AbstractState
767
+ private class ChunkEditingState : AbstractState
770
768
{
771
769
public HashSet < HexChunk > ModifiedChunks = new HashSet < HexChunk > ( ) ;
772
770
}
You can’t perform that action at this time.
0 commit comments