AlphaFramework API
1.0.3
|
Modifies height-map data in a ITerrain. More...
Public Member Functions | |
ModifyHeightMap (ITerrain terrain, Point offset, byte[,] oldPartialData, byte[,] newPartialData, Action refreshHandler) | |
Creates a new command for modifying a rectangular area of the height-map in a ITerrain. More... | |
Public Member Functions inherited from NanoByte::Common::Undo::FirstExecuteCommand | |
void | Execute () |
virtual void | Undo () |
Protected Member Functions | |
override void | OnFirstExecute () |
override void | OnRedo () |
Applies the _newPartialData to ITerrain.HeightMap. More... | |
override void | OnUndo () |
Applies the _oldPartialData to ITerrain.HeightMap. More... | |
Modifies height-map data in a ITerrain.
|
inline |
Creates a new command for modifying a rectangular area of the height-map in a ITerrain.
terrain | The ITerrain to modify. |
offset | The top-left coordinates of the area to modify. |
oldPartialData | The height-map data of the area before it was modified. Do not modify this array after calling this method! |
newPartialData | The height-map data of the area after it was modified. Do not modify this array after calling this method! |
refreshHandler | Called when the presenter needs to be reset. |
|
inlineprotectedvirtual |
Applies the _newPartialData to ITerrain.HeightMap.
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
inlineprotectedvirtual |
Applies the _oldPartialData to ITerrain.HeightMap.
Implements NanoByte::Common::Undo::FirstExecuteCommand.