Expose methods to play scene from plugin code

This commit is contained in:
Yuri Sizov 2020-04-05 17:19:24 +03:00 committed by Yuri Sizov
parent b43fb407b1
commit 49f6dc5004
7 changed files with 124 additions and 8 deletions

View file

@ -73,6 +73,13 @@ public:
void open_scene_from_path(const String &scene_path);
void reload_scene_from_path(const String &scene_path);
void play_main_scene();
void play_current_scene();
void play_custom_scene(const String &scene_path);
void stop_playing_scene();
bool is_playing_scene() const;
String get_playing_scene() const;
Node *get_edited_scene_root();
Array get_open_scenes() const;
ScriptEditor *get_script_editor();