2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef ENGINE_EDITOR_H
|
|
|
|
#define ENGINE_EDITOR_H
|
|
|
|
#include "kernel.h"
|
|
|
|
|
|
|
|
class IEditor : public IInterface
|
|
|
|
{
|
|
|
|
MACRO_INTERFACE("editor", 0)
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~IEditor() {}
|
|
|
|
virtual void Init() = 0;
|
|
|
|
virtual void UpdateAndRender() = 0;
|
2011-03-21 23:31:42 +00:00
|
|
|
virtual bool HasUnsavedData() = 0;
|
2017-06-11 17:53:55 +00:00
|
|
|
virtual int Load(const char *pFilename, int StorageType) = 0;
|
|
|
|
virtual int Save(const char *pFilename) = 0;
|
2019-04-05 23:15:02 +00:00
|
|
|
virtual void UpdateMentions() = 0;
|
|
|
|
virtual void ResetMentions() = 0;
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern IEditor *CreateEditor();
|
|
|
|
#endif
|