SceneEditorRiverEdit
Package: Libraries.Interface.Undo · Inherits from: Libraries.Language.Object, Libraries.Interface.Undo.Edit
The SceneEditorRiverEdit is one change to a river in the scene editor's undo list: a river drawn, a point added, moved or removed, a river's settings changed, or a river removed. A river shapes the ground under it, so the change holds both the water before and after it and the ground's own edit, and undoes or redoes them together, as one step.
Actions
Create(Libraries.Interface.Controls.Scenes.SceneEditor controller, Libraries.Interface.Controls.Scenes.Items.EditorTerrain terrain, Libraries.Interface.Controls.Scenes.WaterState before, Libraries.Interface.Controls.Scenes.WaterState after, Libraries.Game.Graphics.Worlds.TerrainStrokeEdit groundEdit, text changeName)
Sets up the edit.
Parameters
controllerLibraries.Interface.Controls.Scenes.SceneEditor: The scene editorterrainLibraries.Interface.Controls.Scenes.Items.EditorTerrain: The terrain whose river changedbeforeLibraries.Interface.Controls.Scenes.WaterState: The water before the changeafterLibraries.Interface.Controls.Scenes.WaterState: The water after itgroundEditLibraries.Game.Graphics.Worlds.TerrainStrokeEdit: The ground's edit, or undefined if the ground didn't changechangeNametext: What changed, such as "draw River 1"
Dispose()
GetRedoName()
Returns
text
GetUndoName()
Returns
text
Redo()
Undo()
Sets up the edit.