SceneEditorWaterEdit
Package: Libraries.Interface.Undo · Inherits from: Libraries.Language.Object, Libraries.Interface.Undo.Edit
The SceneEditorWaterEdit is one change to a terrain's water in the scene editor's undo list: the sea turned on or off or moved, a lake added, removed or changed, or the water's look changed. It holds the water as it was before and after, and gives the terrain one or the other, then has the scene editor show it and say what happened.
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, text changeName)
Sets up the edit.
Parameters
controllerLibraries.Interface.Controls.Scenes.SceneEditor: The scene editorterrainLibraries.Interface.Controls.Scenes.Items.EditorTerrain: The terrain whose water changedbeforeLibraries.Interface.Controls.Scenes.WaterState: The water before the changeafterLibraries.Interface.Controls.Scenes.WaterState: The water after itchangeNametext: What changed, such as "add lake"
Dispose()
GetRedoName()
Returns
text
GetUndoName()
Returns
text
Redo()
Undo()
Sets up the edit.