mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05: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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user