quest-wizard/models/events/qw_newgameevent.h

28 lines
579 B
C
Raw Normal View History

2023-02-09 08:41:24 -05:00
#ifndef QUESTNEWGAMEEVENT_H
#define QUESTNEWGAMEEVENT_H
#include "qw_abstractlevelevent.h"
/* QWNewGameEvent
* Creates new savefile and begins the game from clear sheet. */
class QWNewGameEvent : public QWAbstractLevelEvent
{
private:
QString str_savefile;
QString composeFileName(const QString &str);
public:
explicit QWNewGameEvent(const QString &savefile);
virtual ~QWNewGameEvent() override {}
void virtual execute() override;
////////////////////////
void writeToJson(QJsonObject &event_data) override;
};
#endif // QUESTNEWGAMEEVENT_H