diff options
Diffstat (limited to 'tools/editor/editor_run_script.h')
-rw-r--r-- | tools/editor/editor_run_script.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/editor/editor_run_script.h b/tools/editor/editor_run_script.h new file mode 100644 index 0000000000..8dbefced7f --- /dev/null +++ b/tools/editor/editor_run_script.h @@ -0,0 +1,27 @@ +#ifndef EDITOR_RUN_SCRIPT_H +#define EDITOR_RUN_SCRIPT_H + +#include "reference.h" + + +class EditorNode; +class EditorScript : public Reference { + + OBJ_TYPE( EditorScript, Reference ); + + EditorNode *editor; +protected: + + static void _bind_methods(); +public: + + void add_root_node(Node *p_node); + Node *get_scene(); + + virtual void _run(); + + void set_editor(EditorNode *p_editor); + EditorScript(); +}; + +#endif // EDITOR_RUN_SCRIPT_H |