1#ifndef GAME_EDITOR_MAPITEMS_IMAGE_H
2#define GAME_EDITOR_MAPITEMS_IMAGE_H
3
4#include <engine/graphics.h>
5
6#include <game/editor/auto_map.h>
7#include <game/editor/component.h>
8
9class CEditorImage : public CImageInfo, public CEditorComponent
10{
11public:
12 explicit CEditorImage(CEditor *pEditor);
13 ~CEditorImage();
14
15 void Init(CEditor *pEditor) override;
16 void AnalyseTileFlags();
17 bool DataEquals(const CEditorImage &Other) const;
18
19 IGraphics::CTextureHandle m_Texture;
20 int m_External = 0;
21 char m_aName[IO_MAX_PATH_LENGTH] = "";
22 unsigned char m_aTileFlags[256];
23 CAutoMapper m_AutoMapper;
24};
25
26#endif
27