You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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