AlphaFramework API  1.0.3
Public Member Functions | Protected Member Functions | List of all members
AlphaFramework.Editor.World.Commands.ModifyTextureMap Class Reference

Modifies texture-map data in a ITerrain. More...

Inheritance diagram for AlphaFramework.Editor.World.Commands.ModifyTextureMap:
NanoByte::Common::Undo::PreExecutedCommand NanoByte::Common::Undo::FirstExecuteCommand NanoByte::Common::Undo::IUndoCommand

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 ()
 

Detailed Description

Modifies texture-map data in a ITerrain.

Constructor & Destructor Documentation

◆ ModifyTextureMap()

AlphaFramework.Editor.World.Commands.ModifyTextureMap.ModifyTextureMap ( ITerrain  terrain,
Point  offset,
byte  oldPartialData[,],
byte  newPartialData[,],
Action  refreshHandler 
)
inline

Creates a new command for modifying a rectangular area of the texture-map in a ITerrain.

Parameters
terrainThe ITerrain to modify.
offsetThe top-left coordinates of the area to modify.
oldPartialDataThe texture-map data of the area before it was modified. Do not modify this array after calling this method!
newPartialDataThe texture-map data of the area after it was modified. Do not modify this array after calling this method!
refreshHandlerCalled when the OmegaEngine.Graphics.Renderables.Terrain needs to be reset.

Member Function Documentation

◆ OnRedo()

override void AlphaFramework.Editor.World.Commands.ModifyTextureMap.OnRedo ( )
inlineprotectedvirtual

Applies the _newPartialData to ITerrain.TextureMap.

Implements NanoByte::Common::Undo::FirstExecuteCommand.

◆ OnUndo()

override void AlphaFramework.Editor.World.Commands.ModifyTextureMap.OnUndo ( )
inlineprotectedvirtual

Applies the _oldPartialData to ITerrain.TextureMap.

Implements NanoByte::Common::Undo::FirstExecuteCommand.


The documentation for this class was generated from the following file: