qmlfrontend/game_view.h
changeset 16017 e8afb1bf2779
parent 16010 a73b9770467a
--- a/qmlfrontend/game_view.h	Mon May 20 14:58:30 2024 +0200
+++ b/qmlfrontend/game_view.h	Tue May 21 14:38:30 2024 +0200
@@ -19,8 +19,8 @@
   Q_INVOKABLE void tick(quint32 delta);
 
   EngineInstance* engineInstance() const;
-
   Renderer* createRenderer() const override;
+  void executeActions();
 
  Q_SIGNALS:
   void engineInstanceChanged(EngineInstance* engineInstance);
@@ -29,10 +29,12 @@
   void setEngineInstance(EngineInstance* engineInstance);
 
  private:
-  quint32 m_delta;
   QPointer<EngineInstance> m_engineInstance;
   QSize m_viewportSize;
   QPoint m_centerPoint;
+  QList<std::function<void(EngineInstance*)>> m_actions;
+
+  void addAction(std::function<void(EngineInstance*)>&& action);
 };
 
 #endif  // GAMEVIEW_H