| 1 | #ifndef GAME_EDITOR_EDITOR_ACTION_H |
|---|---|
| 2 | #define GAME_EDITOR_EDITOR_ACTION_H |
| 3 | |
| 4 | #include <game/editor/map_object.h> |
| 5 | |
| 6 | class IEditorAction : public CMapObject |
| 7 | { |
| 8 | public: |
| 9 | IEditorAction(CEditorMap *pMap) : |
| 10 | CMapObject(pMap) {} |
| 11 | |
| 12 | virtual void Undo() = 0; |
| 13 | virtual void Redo() = 0; |
| 14 | |
| 15 | virtual bool IsEmpty() { return false; } |
| 16 | |
| 17 | const char *DisplayText() const { return m_aDisplayText; } |
| 18 | |
| 19 | protected: |
| 20 | char m_aDisplayText[256]; |
| 21 | }; |
| 22 | |
| 23 | #endif |
| 24 |