diff options
| author | Juan Linietsky | 2016-08-06 19:00:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-08-06 19:00:54 -0300 |
| commit | 9890c1d2ca76dc936e23f5263a4fd296bfc68996 (patch) | |
| tree | be0d304ab3f3b19e3460eee5e0bbdf68d0028f12 /tools/editor/editor_node.h | |
| parent | 259418f8275371fc2f0bab6892caa4ef66b84240 (diff) | |
| download | godot-9890c1d2ca76dc936e23f5263a4fd296bfc68996.tar.gz godot-9890c1d2ca76dc936e23f5263a4fd296bfc68996.tar.zst godot-9890c1d2ca76dc936e23f5263a4fd296bfc68996.zip | |
Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done!
Diffstat (limited to 'tools/editor/editor_node.h')
| -rw-r--r-- | tools/editor/editor_node.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/editor/editor_node.h b/tools/editor/editor_node.h index 09c42c6cd..e6119cf57 100644 --- a/tools/editor/editor_node.h +++ b/tools/editor/editor_node.h @@ -94,6 +94,7 @@ typedef void (*EditorNodeInitCallback)(); +typedef void (*EditorPluginInitializeCallback)(); class EditorPluginList; @@ -575,11 +576,20 @@ private: static void _file_access_close_error_notify(const String& p_str); + + enum { + MAX_INIT_CALLBACKS=128 + }; + + static int plugin_init_callback_count; + static EditorPluginInitializeCallback plugin_init_callbacks[MAX_INIT_CALLBACKS]; protected: void _notification(int p_what); static void _bind_methods(); public: + static void add_plugin_init_callback(EditorPluginInitializeCallback p_callback); + enum EditorTable { EDITOR_2D = 0, EDITOR_3D, @@ -741,6 +751,8 @@ public: static void add_init_callback(EditorNodeInitCallback p_callback) { _init_callbacks.push_back(p_callback); } + + }; |
