Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

GDScript: Use `GDSOFTCLASS` for some internal classes

Danil Alexeevcdbaa55014d4
diff --git a/modules/gdscript/editor/gdscript_translation_parser_plugin.h b/modules/gdscript/editor/gdscript_translation_parser_plugin.h
index 2b95a827eef..1886c4644c0 100644
--- a/modules/gdscript/editor/gdscript_translation_parser_plugin.h
+++ b/modules/gdscript/editor/gdscript_translation_parser_plugin.h
@@ -38,7 +38,7 @@
#include "editor/translations/editor_translation_parser.h"
class GDScriptEditorTranslationParserPlugin : public EditorTranslationParserPlugin {
- GDCLASS(GDScriptEditorTranslationParserPlugin, EditorTranslationParserPlugin);
+ GDSOFTCLASS(GDScriptEditorTranslationParserPlugin, EditorTranslationParserPlugin);
const HashMap<int, GDScriptTokenizer::CommentData> *comment_data = nullptr;
diff --git a/modules/gdscript/language_server/gdscript_language_server.h b/modules/gdscript/language_server/gdscript_language_server.h
index 8eb8bee6ffc..7da0db299d9 100644
--- a/modules/gdscript/language_server/gdscript_language_server.h
+++ b/modules/gdscript/language_server/gdscript_language_server.h
@@ -33,7 +33,7 @@
#include "editor/plugins/editor_plugin.h"
class GDScriptLanguageServer : public EditorPlugin {
- GDCLASS(GDScriptLanguageServer, EditorPlugin);
+ GDSOFTCLASS(GDScriptLanguageServer, EditorPlugin);
Thread thread;
bool thread_running = false;
diff --git a/modules/gdscript/register_types.cpp b/modules/gdscript/register_types.cpp
index 4d86e22d8fa..521927a38d4 100644
--- a/modules/gdscript/register_types.cpp
+++ b/modules/gdscript/register_types.cpp
@@ -80,8 +80,8 @@ GDScriptCache *gdscript_cache = nullptr;
Ref<GDScriptEditorTranslationParserPlugin> gdscript_translation_parser_plugin;
-class EditorExportGDScript : public EditorExportPlugin {
- GDCLASS(EditorExportGDScript, EditorExportPlugin);
+class GDScriptExportPlugin : public EditorExportPlugin {
+ GDSOFTCLASS(GDScriptExportPlugin, EditorExportPlugin);
static constexpr EditorExportPreset::ScriptExportMode DEFAULT_SCRIPT_MODE = EditorExportPreset::MODE_SCRIPT_BINARY_TOKENS_COMPRESSED;
EditorExportPreset::ScriptExportMode script_mode = DEFAULT_SCRIPT_MODE;
@@ -121,7 +121,7 @@ public:
};
static void _editor_init() {
- Ref<EditorExportGDScript> gd_export;
+ Ref<GDScriptExportPlugin> gd_export;
gd_export.instantiate();
EditorExport::get_singleton()->add_export_plugin(gd_export);