GDScript: Use GDSOFTCLASS for some internal classes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user