diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-09-14 19:37:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-09-14 19:37:37 -0300 |
commit | a75f5f039e31e20d985937f63cb2c8b90734160c (patch) | |
tree | 36e61238562eb37cf62f7a1960d32dd1b414c31b /tools/editor/editor_node.cpp | |
parent | a4156f1f0a69bcf4d7c1f43550a39a76cc389e0a (diff) |
Added API version and hashing to ObjectTypeDB
Diffstat (limited to 'tools/editor/editor_node.cpp')
-rw-r--r-- | tools/editor/editor_node.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index dd84b30add..e79bdee1b3 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -5244,6 +5244,18 @@ void EditorNode::add_plugin_init_callback(EditorPluginInitializeCallback p_callb EditorPluginInitializeCallback EditorNode::plugin_init_callbacks[EditorNode::MAX_INIT_CALLBACKS]; +int EditorNode::build_callback_count=0; + +void EditorNode::add_build_callback(EditorBuildCallback p_callback) { + + ERR_FAIL_COND(build_callback_count==MAX_INIT_CALLBACKS); + + build_callbacks[build_callback_count++]=p_callback; +} + +EditorPluginInitializeCallback EditorNode::build_callbacks[EditorNode::MAX_BUILD_CALLBACKS]; + + void EditorNode::_bind_methods() { |