equal
deleted
inserted
replaced
2 #define HWENGINE_H |
2 #define HWENGINE_H |
3 |
3 |
4 #include <QList> |
4 #include <QList> |
5 #include <QObject> |
5 #include <QObject> |
6 |
6 |
7 #include "engine_interface.h" |
|
8 #include "game_config.h" |
7 #include "game_config.h" |
|
8 #include "preview_acceptor.h" |
9 |
9 |
10 class QQmlEngine; |
10 class QQmlEngine; |
11 class EngineInstance; |
11 class EngineInstance; |
12 class PreviewAcceptor; |
|
13 |
12 |
14 class HWEngine : public QObject { |
13 class HWEngine : public QObject { |
15 Q_OBJECT |
14 Q_OBJECT |
16 |
15 |
17 Q_PROPERTY(int previewHedgehogsCount READ previewHedgehogsCount NOTIFY |
16 Q_PROPERTY(int previewHedgehogsCount READ previewHedgehogsCount NOTIFY |
22 NOTIFY engineLibraryChanged) |
21 NOTIFY engineLibraryChanged) |
23 Q_PROPERTY(QString dataPath READ dataPath WRITE setDataPath NOTIFY dataPathChanged) |
22 Q_PROPERTY(QString dataPath READ dataPath WRITE setDataPath NOTIFY dataPathChanged) |
24 |
23 |
25 public: |
24 public: |
26 explicit HWEngine(QObject* parent = nullptr); |
25 explicit HWEngine(QObject* parent = nullptr); |
27 ~HWEngine(); |
26 ~HWEngine() override; |
28 |
27 |
29 Q_INVOKABLE void getPreview(); |
28 Q_INVOKABLE void getPreview(); |
30 Q_INVOKABLE EngineInstance* runQuickGame(); |
29 Q_INVOKABLE EngineInstance* runQuickGame(); |
31 |
30 |
32 int previewHedgehogsCount() const; |
31 int previewHedgehogsCount() const; |