MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / ExportNotifier

Method ExportNotifier

editor/export/editor_export_platform.cpp:635–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635EditorExportPlatform::ExportNotifier::ExportNotifier(EditorExportPlatform &p_platform, const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, BitField<EditorExportPlatform::DebugFlags> p_flags) {
636 HashSet<String> features = p_platform.get_features(p_preset, p_debug);
637 Vector<Ref<EditorExportPlugin>> export_plugins = EditorExport::get_singleton()->get_export_plugins();
638 //initial export plugin callback
639 for (int i = 0; i < export_plugins.size(); i++) {
640 export_plugins.write[i]->set_export_preset(p_preset);
641 if (GDVIRTUAL_IS_OVERRIDDEN_PTR(export_plugins[i], _export_begin)) {
642 PackedStringArray features_psa;
643 for (const String &feature : features) {
644 features_psa.push_back(feature);
645 }
646 export_plugins.write[i]->_export_begin_script(features_psa, p_debug, p_path, p_flags);
647 } else {
648 export_plugins.write[i]->_export_begin(features, p_debug, p_path, p_flags);
649 }
650 }
651}
652
653EditorExportPlatform::ExportNotifier::~ExportNotifier() {
654 Vector<Ref<EditorExportPlugin>> export_plugins = EditorExport::get_singleton()->get_export_plugins();

Callers

nothing calls this directly

Calls 7

get_export_pluginsMethod · 0.80
set_export_presetMethod · 0.80
_export_begin_scriptMethod · 0.80
sizeMethod · 0.65
get_featuresMethod · 0.45
push_backMethod · 0.45
_export_beginMethod · 0.45

Tested by

no test coverage detected