35 lines
812 B
C++
35 lines
812 B
C++
#ifndef QUESTPLAYMUSICEVENT_H
|
|
#define QUESTPLAYMUSICEVENT_H
|
|
|
|
#include "qw_abstractsoundevent.h"
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
//// DOESN'T WORK! Has to be reworked in master-merge 1.2
|
|
//// https://trello.com/c/KFUhEbYh/62-reimplement-sound-system
|
|
|
|
class QWPlayMusicEvent : public QWAbstractSoundEvent
|
|
{
|
|
private:
|
|
QString str_musicpath;
|
|
int index;
|
|
|
|
public:
|
|
explicit QWPlayMusicEvent(const QString &path);
|
|
virtual ~QWPlayMusicEvent() override {}
|
|
|
|
void execute() override;
|
|
|
|
////////////////////////
|
|
|
|
inline void setMusicpath(const QString &path) noexcept;
|
|
inline QString musicpath() const noexcept;
|
|
|
|
void attachMusic();
|
|
|
|
////////////////////////
|
|
|
|
void writeToJson(QJsonObject &event_data) override;
|
|
};
|
|
|
|
#endif // QUESTPLAYMUSICEVENT_H
|