| 1 | #ifndef GAME_EDITOR_MAPITEMS_LAYER_SOUNDS_H |
| 2 | #define GAME_EDITOR_MAPITEMS_LAYER_SOUNDS_H |
| 3 | |
| 4 | #include "layer.h" |
| 5 | |
| 6 | class CLayerSounds : public CLayer |
| 7 | { |
| 8 | public: |
| 9 | explicit CLayerSounds(CEditorMap *pMap); |
| 10 | CLayerSounds(const CLayerSounds &Other); |
| 11 | ~CLayerSounds() override; |
| 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(CLayerGroup *pBrush, CUIRect Rect) override; |
| 18 | void BrushPlace(CLayer *pBrush, vec2 WorldPos) override; |
| 19 | |
| 20 | CUi::EPopupMenuFunctionResult RenderProperties(CUIRect *pToolbox) override; |
| 21 | |
| 22 | void ModifyEnvelopeIndex(const FIndexModifyFunction &IndexModifyFunction) override; |
| 23 | void ModifySoundIndex(const FIndexModifyFunction &IndexModifyFunction) override; |
| 24 | |
| 25 | std::shared_ptr<CLayer> Duplicate() const override; |
| 26 | const char *TypeName() const override; |
| 27 | |
| 28 | int m_Sound; |
| 29 | std::vector<CSoundSource> m_vSources; |
| 30 | }; |
| 31 | |
| 32 | #endif |
| 33 | |