Expose methods to play scene from plugin code

(cherry picked from commit 49f6dc5004)
This commit is contained in:
Yuri Sizov
2020-04-05 17:19:24 +03:00
committed by Rémi Verschelde
parent a8d4ca0e1b
commit 2b4773f0cf
7 changed files with 124 additions and 9 deletions

View File

@ -48,9 +48,11 @@ private:
bool debug_collisions;
bool debug_navigation;
Status status;
String running_scene;
public:
Status get_status() const;
String get_running_scene() const;
Error run(const String &p_scene, const String &p_custom_args, const List<String> &p_breakpoints, const bool &p_skip_breakpoints = false);
void run_native_notify() { status = STATUS_PLAY; }
void stop();