qmlfrontend/engine_instance.h
author nemo
Fri, 23 Nov 2018 15:54:23 -0500
changeset 14282 6015b74eea55
parent 14271 1aac8a62be6f
child 14290 92e5682810d4
permissions -rw-r--r--
overall, using LongInt for leftX/rightX results in fewer casts, since most comparisons are against ints.

#ifndef ENGINEINSTANCE_H
#define ENGINEINSTANCE_H

#include "engine_interface.h"

#include <QObject>

#include "game_config.h"

class EngineInstance : public QObject {
  Q_OBJECT
 public:
  explicit EngineInstance(QObject *parent = nullptr);
  ~EngineInstance();

  void sendConfig(const GameConfig &config);
  Engine::PreviewInfo generatePreview();

 signals:

 public slots:

 private:
  Engine::EngineInstance *m_instance;
};

#endif  // ENGINEINSTANCE_H