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