| OpenMW
    | 
Adds LandTexture records and modifies texture indices as needed. More...
#include <commands.hpp>
| Public Member Functions | |
| ImportLandTexturesCommand (IdTable &landTable, IdTable <exTable, QUndoCommand *parent) | |
| void | redo () override | 
| void | undo () override | 
| Protected Types | |
| using | DataType = LandTexturesColumn::DataType | 
| Protected Member Functions | |
| virtual const std::string & | getOriginId () const =0 | 
| virtual const std::string & | getDestinationId () const =0 | 
| virtual void | onRedo ()=0 | 
| virtual void | onUndo ()=0 | 
| Protected Attributes | |
| IdTable & | mLands | 
| IdTable & | mLtexs | 
| DataType | mOld | 
| int | mOldState | 
| std::vector< std::string > | mCreatedTextures | 
Adds LandTexture records and modifies texture indices as needed.
LandTexture records are different from other types of records, because they only effect the current plugin. Thus, when modifying or copying a Land record, all of the LandTexture records referenced need to be added to the current plugin. Since these newly added LandTextures could have indices that conflict with pre-existing LandTextures in the current plugin, the indices might have to be changed, both for the newly added LandRecord and within the Land record.
| 
 | protected | 
| CSMWorld::ImportLandTexturesCommand::ImportLandTexturesCommand | ( | IdTable & | landTable, | 
| IdTable & | ltexTable, | ||
| QUndoCommand * | parent | ||
| ) | 
| 
 | protectedpure virtual | 
Implemented in CSMWorld::TouchLandCommand, and CSMWorld::CopyLandTexturesCommand.
| 
 | protectedpure virtual | 
Implemented in CSMWorld::TouchLandCommand, and CSMWorld::CopyLandTexturesCommand.
| 
 | protectedpure virtual | 
Implemented in CSMWorld::TouchLandCommand, and CSMWorld::CopyLandTexturesCommand.
| 
 | protectedpure virtual | 
Implemented in CSMWorld::TouchLandCommand, and CSMWorld::CopyLandTexturesCommand.
| 
 | override | 
| 
 | override | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
 1.8.6
 1.8.6