update project script methods, replace project script with project client script

This commit is contained in:
MihailRis
2025-08-18 21:20:18 +03:00
parent dc0e388eec
commit c8d760e83e
6 changed files with 92 additions and 88 deletions
+6 -4
View File
@@ -65,14 +65,16 @@ namespace scripting {
void process_post_runnables();
class IProjectScript {
class IClientProjectScript {
public:
virtual ~IProjectScript() {}
virtual ~IClientProjectScript() {}
virtual void onScreenChange(const std::string& name) = 0;
virtual void onScreenChange(const std::string& name, bool show) = 0;
};
std::unique_ptr<IProjectScript> load_project_script(const io::path& script);
std::unique_ptr<IClientProjectScript> load_client_project_script(
const io::path& script
);
std::unique_ptr<Process> start_coroutine(const io::path& script);