mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update project script methods, replace project script with project client script
This commit is contained in:
parent
dc0e388eec
commit
c8d760e83e
6 changed files with 92 additions and 88 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue