31 lines
695 B
C
31 lines
695 B
C
|
#ifndef QUESTPLAYSOUNDEVENT_H
|
||
|
#define QUESTPLAYSOUNDEVENT_H
|
||
|
|
||
|
#include <memory>
|
||
|
#include <QFile>
|
||
|
#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 QSoundEffect;
|
||
|
|
||
|
class QWPlaySoundEvent : public QWAbstractSoundEvent
|
||
|
{
|
||
|
private:
|
||
|
QMediaContent *media_sound;
|
||
|
|
||
|
public:
|
||
|
explicit QWPlaySoundEvent(const QString &path);
|
||
|
virtual ~QWPlaySoundEvent() override {}
|
||
|
|
||
|
void execute() override;
|
||
|
|
||
|
////////////////////////
|
||
|
|
||
|
void writeToJson(QJsonObject &event_data) override;
|
||
|
};
|
||
|
|
||
|
#endif // QUESTPLAYSOUNDEVENT_H
|