editor_run_script.h 422 B

123456789101112131415161718192021222324252627
  1. #ifndef EDITOR_RUN_SCRIPT_H
  2. #define EDITOR_RUN_SCRIPT_H
  3. #include "reference.h"
  4. class EditorNode;
  5. class EditorScript : public Reference {
  6. OBJ_TYPE( EditorScript, Reference );
  7. EditorNode *editor;
  8. protected:
  9. static void _bind_methods();
  10. public:
  11. void add_root_node(Node *p_node);
  12. Node *get_scene();
  13. virtual void _run();
  14. void set_editor(EditorNode *p_editor);
  15. EditorScript();
  16. };
  17. #endif // EDITOR_RUN_SCRIPT_H