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.

26 lines
510 B
C++

#ifndef QUESTQUITGAMEEVENT_H
#define QUESTQUITGAMEEVENT_H
#include "qw_abstractlevelevent.h"
/* QWQuitGameEvent
* Immediately terminates current session. */
class QWQuitGameEvent : public QWAbstractLevelEvent
{
private:
bool b_savegame;
public:
explicit QWQuitGameEvent(bool savegame = false);
virtual ~QWQuitGameEvent() override {}
void virtual execute() override;
////////////////////////
void writeToJson(QJsonObject &event_data) override;
};
#endif // QUESTQUITGAMEEVENT_H