Vixen
02b45cc4
csharp
public sealed class TerrainStrokeRedo

What a stroke left, so it can be put back after an undo.

Read the guide page for this →

Remarks

A separate type from TerrainStroke because it is a different lifetime: the stroke exists while the pointer is down and this exists for as long as the undo stack holds the entry.

Fields and properties (2)

  • public TerrainRect Rect

    Everything the stroke touched.

  • public int RecordedSamples

    How many samples the record holds.

Methods (1)

  • public TerrainRect Redo()

    Puts the stroke's result back.

Used by (3)

  • TerrainStrokeVixen.Terrain
  • TerrainStrokeTestsVixen.Terrain.Tests
  • TerrainStrokeCommandVixen.Editor.Terrain