equal
deleted
inserted
replaced
7 #include "engine_interface.h" |
7 #include "engine_interface.h" |
8 #include "game_config.h" |
8 #include "game_config.h" |
9 |
9 |
10 class QQmlEngine; |
10 class QQmlEngine; |
11 class PreviewImageProvider; |
11 class PreviewImageProvider; |
|
12 class EngineInstance; |
12 |
13 |
13 class HWEngine : public QObject { |
14 class HWEngine : public QObject { |
14 Q_OBJECT |
15 Q_OBJECT |
15 |
16 |
16 Q_PROPERTY(int previewHedgehogsCount READ previewHedgehogsCount NOTIFY |
17 Q_PROPERTY(int previewHedgehogsCount READ previewHedgehogsCount NOTIFY |
21 ~HWEngine(); |
22 ~HWEngine(); |
22 |
23 |
23 static void exposeToQML(); |
24 static void exposeToQML(); |
24 |
25 |
25 Q_INVOKABLE void getPreview(); |
26 Q_INVOKABLE void getPreview(); |
26 Q_INVOKABLE void runQuickGame(); |
27 Q_INVOKABLE EngineInstance* runQuickGame(); |
27 |
28 |
28 int previewHedgehogsCount() const; |
29 int previewHedgehogsCount() const; |
29 |
30 |
30 signals: |
31 signals: |
31 void previewIsRendering(); |
32 void previewIsRendering(); |