1#ifndef GAME_EDITOR_LAYER_SELECTOR_H
2#define GAME_EDITOR_LAYER_SELECTOR_H
3
4#include "component.h"
5
6class CHoverTile
7{
8public:
9 CHoverTile(int Group, int Layer) :
10 m_Group(Group),
11 m_Layer(Layer)
12 {
13 }
14
15 int m_Group;
16 int m_Layer;
17};
18
19class CLayerSelector : public CEditorComponent
20{
21 int m_SelectionOffset;
22 std::vector<CHoverTile> m_vHoverTiles;
23
24public:
25 void OnInit(CEditor *pEditor) override;
26 bool SelectByTile();
27 void UpdateHoveredTiles();
28};
29
30#endif
31