DDraceNetwork Docs
CEditorActionEditLayerTilesProp Class Reference

#include <editor_actions.h>

Inheritance diagram for CEditorActionEditLayerTilesProp:
[legend]
Collaboration diagram for CEditorActionEditLayerTilesProp:
[legend]

Public Member Functions

 CEditorActionEditLayerTilesProp (CEditor *pEditor, int GroupIndex, int LayerIndex, ETilesProp Prop, int Previous, int Current)
 
void Undo () override
 
void Redo () override
 
void SetSavedLayers (const std::map< int, std::shared_ptr< CLayer > > &SavedLayers)
 
- Public Member Functions inherited from CEditorActionEditLayerPropBase< ETilesProp >
 CEditorActionEditLayerPropBase (CEditor *pEditor, int GroupIndex, int LayerIndex, ETilesProp Prop, int Previous, int Current)
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from CEditorActionLayerBase
 CEditorActionLayerBase (CEditor *pEditor, int GroupIndex, int LayerIndex)
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from IEditorAction
 IEditorAction (CEditor *pEditor)
 
 IEditorAction ()=default
 
virtual ~IEditorAction ()=default
 
virtual void Undo ()=0
 
virtual void Redo ()=0
 
virtual bool IsEmpty ()
 
const char * DisplayText () const
 

Private Member Functions

void RestoreLayer (int Layer, const std::shared_ptr< CLayerTiles > &pLayerTiles)
 

Private Attributes

std::map< int, std::shared_ptr< CLayer > > m_SavedLayers
 

Additional Inherited Members

- Protected Attributes inherited from CEditorActionEditLayerPropBase< ETilesProp >
ETilesProp m_Prop
 
int m_Previous
 
int m_Current
 
- Protected Attributes inherited from CEditorActionLayerBase
int m_GroupIndex
 
int m_LayerIndex
 
std::shared_ptr< CLayerm_pLayer
 
- Protected Attributes inherited from IEditorAction
CEditorm_pEditor
 
char m_aDisplayText [256]
 

Constructor & Destructor Documentation

◆ CEditorActionEditLayerTilesProp()

CEditorActionEditLayerTilesProp::CEditorActionEditLayerTilesProp ( CEditor pEditor,
int  GroupIndex,
int  LayerIndex,
ETilesProp  Prop,
int  Previous,
int  Current 
)

Member Function Documentation

◆ Redo()

void CEditorActionEditLayerTilesProp::Redo ( )
overridevirtual

◆ RestoreLayer()

void CEditorActionEditLayerTilesProp::RestoreLayer ( int  Layer,
const std::shared_ptr< CLayerTiles > &  pLayerTiles 
)
private

◆ SetSavedLayers()

void CEditorActionEditLayerTilesProp::SetSavedLayers ( const std::map< int, std::shared_ptr< CLayer > > &  SavedLayers)

◆ Undo()

void CEditorActionEditLayerTilesProp::Undo ( )
overridevirtual

Member Data Documentation

◆ m_SavedLayers

std::map<int, std::shared_ptr<CLayer> > CEditorActionEditLayerTilesProp::m_SavedLayers
private

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