1#ifndef GAME_EDITOR_MAPITEMS_LAYER_H
2#define GAME_EDITOR_MAPITEMS_LAYER_H
49 virtual void BrushDraw(std::shared_ptr<CLayer> pBrush,
vec2 WorldPos) {}
57 virtual void Render(
bool Tileset =
false) {}
64 virtual std::shared_ptr<CLayer>
Duplicate()
const = 0;
67 virtual void GetSize(
float *pWidth,
float *pHeight)
Definition: layer_group.h:10
int m_Type
Definition: layer.h:74
virtual void GetSize(float *pWidth, float *pHeight)
Definition: layer.h:67
class ITextRender * TextRender()
Definition: editor.h:1195
virtual int BrushGrab(std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect)
Definition: layer.h:47
CLayer(const CLayer &Other)
Definition: layer.h:32
virtual std::shared_ptr< CLayer > Duplicate() const =0
virtual void ModifyImageIndex(FIndexModifyFunction pfnFunc)
Definition: layer.h:60
bool m_Readonly
Definition: layer.h:77
virtual void BrushFlipY()
Definition: layer.h:52
virtual void BrushDraw(std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
Definition: layer.h:49
virtual ~CLayer()
Definition: layer.h:42
virtual void ModifyEnvelopeIndex(FIndexModifyFunction pfnFunc)
Definition: layer.h:61
virtual void ModifySoundIndex(FIndexModifyFunction pfnFunc)
Definition: layer.h:62
virtual void BrushPlace(std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
Definition: layer.h:50
virtual bool IsEntitiesLayer() const
Definition: layer.h:55
class CEditor * m_pEditor
Definition: layer.h:18
char m_aName[12]
Definition: layer.h:73
int m_Flags
Definition: layer.h:75
virtual void FillSelection(bool Empty, std::shared_ptr< CLayer > pBrush, CUIRect Rect)
Definition: layer.h:48
class IGraphics * Graphics()
Definition: editor.h:1194
CLayer(CEditor *pEditor)
Definition: layer.h:22
virtual void BrushRotate(float Amount)
Definition: layer.h:53
virtual CUi::EPopupMenuFunctionResult RenderProperties(CUIRect *pToolbox)
Definition: layer.h:58
virtual void Render(bool Tileset=false)
Definition: layer.h:57
virtual void BrushFlipX()
Definition: layer.h:51
virtual const char * TypeName() const =0
bool m_Visible
Definition: layer.h:78
virtual void BrushSelecting(CUIRect Rect)
Definition: layer.h:46
EPopupMenuFunctionResult
Definition: ui.h:289
@ POPUP_KEEP_OPEN
Definition: ui.h:293
Definition: graphics.h:183
Definition: textrender.h:312
std::function< void(int *pIndex)> FIndexModifyFunction
Definition: editor.h:52
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2720
@ LAYERTYPE_INVALID
Definition: mapitems.h:11