| 1 | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ |
| 2 | /* If you are missing that file, acquire a complete release at teeworlds.com. */ |
| 3 | #ifndef ENGINE_EDITOR_H |
| 4 | #define ENGINE_EDITOR_H |
| 5 | #include "kernel.h" |
| 6 | |
| 7 | class IEditor : public IInterface |
| 8 | { |
| 9 | MACRO_INTERFACE("editor" ) |
| 10 | public: |
| 11 | virtual void Init() = 0; |
| 12 | virtual void OnUpdate() = 0; |
| 13 | virtual void OnRender() = 0; |
| 14 | virtual void OnActivate() = 0; |
| 15 | virtual void OnWindowResize() = 0; |
| 16 | virtual void OnClose() = 0; |
| 17 | virtual bool HasUnsavedData() const = 0; |
| 18 | virtual bool HandleMapDrop(const char *pFilename, int StorageType) = 0; |
| 19 | virtual bool Load(const char *pFilename, int StorageType) = 0; |
| 20 | virtual bool Save(const char *pFilename) = 0; |
| 21 | virtual void UpdateMentions() = 0; |
| 22 | virtual void ResetMentions() = 0; |
| 23 | virtual void OnIngameMoved() = 0; |
| 24 | virtual void ResetIngameMoved() = 0; |
| 25 | }; |
| 26 | |
| 27 | extern IEditor *CreateEditor(); |
| 28 | #endif |
| 29 | |