DDraceNetwork Docs
editor_action.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_EDITOR_ACTION_H
2#define GAME_EDITOR_EDITOR_ACTION_H
3
4#include <string>
5
6class CEditor;
7
9{
10public:
12 m_pEditor(pEditor) {}
13
14 IEditorAction() = default;
15
16 virtual ~IEditorAction() = default;
17
18 virtual void Undo() = 0;
19 virtual void Redo() = 0;
20
21 virtual bool IsEmpty() { return false; }
22
23 const char *DisplayText() const { return m_aDisplayText; }
24
25protected:
27 char m_aDisplayText[256];
28};
29
30#endif
Definition: editor.h:276
Definition: editor_action.h:9
virtual void Undo()=0
CEditor * m_pEditor
Definition: editor_action.h:26
char m_aDisplayText[256]
Definition: editor_action.h:27
IEditorAction(CEditor *pEditor)
Definition: editor_action.h:11
virtual ~IEditorAction()=default
const char * DisplayText() const
Definition: editor_action.h:23
IEditorAction()=default
virtual bool IsEmpty()
Definition: editor_action.h:21
virtual void Redo()=0