-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor_mode.h
46 lines (35 loc) · 1 KB
/
editor_mode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef IGEEK_RPG_TOOLKIT_EDITORMODE_H
#define IGEEK_RPG_TOOLKIT_EDITORMODE_H
#include "gui.h"
#include "state.h"
#include "tilemap.h"
class EditorStateData {
public:
EditorStateData(){};
sf::View* view;
sf::Font* font;
float *keytime, //<
*keytimeMax; //<
_::ADictionary<_::AString, int>* keybinds;
sf::Vector2i *mouse_pos_screen, //<
*mouse_pos_window, //<
*mouse_pos_view, //<
*mouse_pos_grid; //<
};
class ModeEditor {
protected:
StateData* state_data_;
EditorStateData* editor_state_data_;
TileMap* tiles_;
public:
ModeEditor(StateData* state_data, TileMap* tiles,
EditorStateData* editor_state_data);
virtual ~ModeEditor();
const bool KeyTime();
virtual void UpdateInput(const float& dt) = 0;
virtual void UpdateGUI(const float& dt) = 0;
virtual void Update(const float& dt) = 0;
virtual void RenderGUI(sf::RenderTarget& target) = 0;
virtual void Render(sf::RenderTarget& target) = 0;
};
#endif