mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
b0a21dab09
The `Append` method was returning `0` on success while `Load` and `Save` were returning `1`. Now all three methods use a `bool` as return value and return `true` on success. The call `SortImages()` is moved inside the `Append` method, as it should always be called when appending succeeded.
24 lines
711 B
C++
24 lines
711 B
C++
/* (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. */
|
|
#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 OnUpdate() = 0;
|
|
virtual void OnRender() = 0;
|
|
virtual bool HasUnsavedData() const = 0;
|
|
virtual bool Load(const char *pFilename, int StorageType) = 0;
|
|
virtual bool Save(const char *pFilename) = 0;
|
|
virtual void UpdateMentions() = 0;
|
|
virtual void ResetMentions() = 0;
|
|
};
|
|
|
|
extern IEditor *CreateEditor();
|
|
#endif
|