mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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
 | 
