123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef CRYINCLUDE_EDITOR_CORE_UTIL_UNDO_UTIL_H
- #define CRYINCLUDE_EDITOR_CORE_UTIL_UNDO_UTIL_H
- #pragma once
- #include "Include/EditorCoreAPI.h"
- struct IUndoObject;
- class EDITOR_CORE_API CUndo
- {
- public:
- CUndo(const char* description);
- ~CUndo();
- void Cancel() { m_bCancelled = true; }
-
- static bool IsRecording();
-
- static bool IsSuspended();
-
- static void Record(IUndoObject* undo);
- private:
- static const AZ::u32 scDescSize = 256;
- char m_description[scDescSize];
- bool m_bCancelled;
- bool m_bStartedRecord;
- };
- class EDITOR_CORE_API CUndoSuspend
- {
- public:
- CUndoSuspend();
- ~CUndoSuspend();
- };
- #endif
|