mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix EditorNavigationMeshGenerator registered in Core API
Also added an option to output a json file with all the ClassDB registered classes and its members. This can be used to compare the API of two different builds by a simple diff.
This commit is contained in:
parent
b489e75716
commit
d3f48f88bb
4 changed files with 301 additions and 0 deletions
|
@ -44,6 +44,10 @@
|
|||
#include "editor/editor_node.h"
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
#include "class_db_api_json.h"
|
||||
#endif
|
||||
|
||||
#include "editor/editor_internal_calls.h"
|
||||
#include "godotsharp_dirs.h"
|
||||
#include "mono_gd/gd_mono_class.h"
|
||||
|
@ -98,6 +102,15 @@ Error CSharpLanguage::execute_file(const String &p_path) {
|
|||
|
||||
void CSharpLanguage::init() {
|
||||
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
if (OS::get_singleton()->get_cmdline_args().find("--class_db_to_json")) {
|
||||
class_db_api_to_json("user://class_db_api.json", ClassDB::API_CORE);
|
||||
#ifdef TOOLS_ENABLED
|
||||
class_db_api_to_json("user://class_db_api_editor.json", ClassDB::API_EDITOR);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
gdmono = memnew(GDMono);
|
||||
gdmono->initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue