qmlfrontend/engine_instance.cpp
author Wuzzy <Wuzzy2@mail.ru>
Mon, 19 Nov 2018 01:04:29 +0100
changeset 14237 60622d2a4a3c
parent 14159 8354b390f1a2
child 14276 1aac8a62be6f
permissions -rw-r--r--
ACF1: Set hero's gear position when skipping first cut scene

#include "engine_instance.h"

EngineInstance::EngineInstance(QObject *parent)
    : QObject(parent), m_instance(Engine::start_engine()) {}

EngineInstance::~EngineInstance() { Engine::cleanup(m_instance); }

Engine::PreviewInfo EngineInstance::generatePreview() {
  Engine::PreviewInfo pinfo;

  Engine::generate_preview(m_instance, &pinfo);

  return pinfo;
}