DDraceNetwork Docs
layer_sounds.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_MAPITEMS_LAYER_SOUNDS_H
2#define GAME_EDITOR_MAPITEMS_LAYER_SOUNDS_H
3
4#include "layer.h"
5
6class CLayerSounds : public CLayer
7{
8public:
9 explicit CLayerSounds(CEditor *pEditor);
10 CLayerSounds(const CLayerSounds &Other);
12
13 void Render(bool Tileset = false) override;
14 CSoundSource *NewSource(int x, int y);
15
16 void BrushSelecting(CUIRect Rect) override;
17 int BrushGrab(std::shared_ptr<CLayerGroup> pBrush, CUIRect Rect) override;
18 void BrushPlace(std::shared_ptr<CLayer> pBrush, vec2 WorldPos) override;
19
21
22 void ModifyEnvelopeIndex(FIndexModifyFunction pfnFunc) override;
23 void ModifySoundIndex(FIndexModifyFunction pfnFunc) override;
24
25 std::shared_ptr<CLayer> Duplicate() const override;
26 const char *TypeName() const override;
27
29 std::vector<CSoundSource> m_vSources;
30};
31
32#endif
Definition: editor.h:276
Definition: layer_sounds.h:7
int BrushGrab(std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect) override
Definition: layer_sounds.cpp:127
void ModifyEnvelopeIndex(FIndexModifyFunction pfnFunc) override
Definition: layer_sounds.cpp:207
void BrushPlace(std::shared_ptr< CLayer > pBrush, vec2 WorldPos) override
Definition: layer_sounds.cpp:153
void ModifySoundIndex(FIndexModifyFunction pfnFunc) override
Definition: layer_sounds.cpp:202
void Render(bool Tileset=false) override
Definition: layer_sounds.cpp:26
CLayerSounds(CEditor *pEditor)
Definition: layer_sounds.cpp:9
CSoundSource * NewSource(int x, int y)
Definition: layer_sounds.cpp:86
int m_Sound
Definition: layer_sounds.h:28
std::vector< CSoundSource > m_vSources
Definition: layer_sounds.h:29
const char * TypeName() const override
Definition: layer_sounds.cpp:221
std::shared_ptr< CLayer > Duplicate() const override
Definition: layer_sounds.cpp:216
CUi::EPopupMenuFunctionResult RenderProperties(CUIRect *pToolbox) override
Definition: layer_sounds.cpp:171
void BrushSelecting(CUIRect Rect) override
Definition: layer_sounds.cpp:113
Definition: layer.h:16
Definition: ui_rect.h:11
EPopupMenuFunctionResult
Definition: ui.h:289
std::function< void(int *pIndex)> FIndexModifyFunction
Definition: editor.h:52
Definition: mapitems.h:483