mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
29 lines
586 B
C++
29 lines
586 B
C++
#pragma once
|
|
|
|
#include "interfaces/Process.hpp"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace scripting {
|
|
class IClientProjectScript;
|
|
}
|
|
|
|
struct CoreParameters;
|
|
struct Project;
|
|
|
|
class AppScriptsControl {
|
|
public:
|
|
AppScriptsControl(const CoreParameters& params);
|
|
|
|
void tick();
|
|
void loadProjectClientScript();
|
|
void terminate(std::string_view reason);
|
|
|
|
void onScreenChange(const std::string& name, bool show);
|
|
|
|
bool isFinished() const;
|
|
private:
|
|
std::unique_ptr<scripting::IClientProjectScript> clientScript;
|
|
std::unique_ptr<Process> scriptCoroutine;
|
|
};
|