mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add on_screen_change project script event & fix UIDocument::rebuildIndices & move menu background to project script
This commit is contained in:
parent
7749da4a85
commit
0a02d3fbec
16 changed files with 148 additions and 66 deletions
|
|
@ -65,9 +65,16 @@ namespace scripting {
|
|||
|
||||
void process_post_runnables();
|
||||
|
||||
std::unique_ptr<Process> start_coroutine(
|
||||
const io::path& script
|
||||
);
|
||||
class IProjectScript {
|
||||
public:
|
||||
virtual ~IProjectScript() {}
|
||||
|
||||
virtual void onScreenChange(const std::string& name) = 0;
|
||||
};
|
||||
|
||||
std::unique_ptr<IProjectScript> load_project_script(const io::path& script);
|
||||
|
||||
std::unique_ptr<Process> start_coroutine(const io::path& script);
|
||||
|
||||
void on_world_load(LevelController* controller);
|
||||
void on_world_tick(int tps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue