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.

25 lines
585 B
C++

#ifndef QWDIALOGUEFACTORY_H
#define QWDIALOGUEFACTORY_H
#include "models/dialogues/qw_textdialogue.h"
#include "models/dialogues/qw_widgetdialogue.h"
/* QWDialogueFactory
* Creates game dialogues of all kinds! */
class QWLevelBuilder;
class QWDialogueFactory final
{
private:
QWLevelBuilder *builder;
public:
explicit QWDialogueFactory(QWLevelBuilder *b);
std::shared_ptr<QWTextDialogue> createTextDialogue(const QJsonObject &json_object);
std::shared_ptr<QWWidgetDialogue> createWidgetDialogue(const QJsonObject &json_object);
};
#endif // QWDIALOGUEFACTORY_H