DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
editor.h
Go to the documentation of this file.
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
IEditor
Definition
editor.h:8
IEditor::OnActivate
virtual void OnActivate()=0
IEditor::ResetMentions
virtual void ResetMentions()=0
IEditor::HandleMapDrop
virtual bool HandleMapDrop(const char *pFilename, int StorageType)=0
IEditor::OnRender
virtual void OnRender()=0
IEditor::Save
virtual bool Save(const char *pFilename)=0
IEditor::Init
virtual void Init()=0
IEditor::OnWindowResize
virtual void OnWindowResize()=0
IEditor::OnUpdate
virtual void OnUpdate()=0
IEditor::HasUnsavedData
virtual bool HasUnsavedData() const =0
IEditor::OnIngameMoved
virtual void OnIngameMoved()=0
IEditor::ResetIngameMoved
virtual void ResetIngameMoved()=0
IEditor::Load
virtual bool Load(const char *pFilename, int StorageType)=0
IEditor::OnClose
virtual void OnClose()=0
IEditor::UpdateMentions
virtual void UpdateMentions()=0
IInterface::IInterface
IInterface()
Definition
kernel.h:19
CreateEditor
IEditor * CreateEditor()
Definition
editor.cpp:5180
kernel.h
MACRO_INTERFACE
#define MACRO_INTERFACE(Name)
Definition
kernel.h:25
src
engine
editor.h
Generated by
1.18.0