-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow adding custom export platforms using scripts / GDExtension.
- Loading branch information
Showing
15 changed files
with
1,206 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<class name="EditorExportPlatformExtension" inherits="EditorExportPlatform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> | ||
<brief_description> | ||
</brief_description> | ||
<description> | ||
</description> | ||
<tutorials> | ||
</tutorials> | ||
<methods> | ||
<method name="_can_export" qualifiers="virtual const"> | ||
<return type="bool" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="debug" type="bool" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Returns [code]true[/code], if specified [param preset] is valid and can be exported. Use [method set_config_error] and [method set_config_missing_templates] to set error details. | ||
</description> | ||
</method> | ||
<method name="_cleanup" qualifiers="virtual"> | ||
<return type="void" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Called by the editor before platform is unregistered. | ||
</description> | ||
</method> | ||
<method name="_export_pack" qualifiers="virtual"> | ||
<return type="int" enum="Error" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="debug" type="bool" /> | ||
<param index="2" name="path" type="String" /> | ||
<param index="3" name="flags" type="int" /> | ||
<description> | ||
[b]Required.[/b] | ||
Creates a PCK archive at [param path] for the specified [param preset]. | ||
</description> | ||
</method> | ||
<method name="_export_project" qualifiers="virtual"> | ||
<return type="int" enum="Error" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="debug" type="bool" /> | ||
<param index="2" name="path" type="String" /> | ||
<param index="3" name="flags" type="int" /> | ||
<description> | ||
[b]Required.[/b] | ||
Creates a full project export at [param path] for the specified [param preset]. | ||
</description> | ||
</method> | ||
<method name="_export_zip" qualifiers="virtual"> | ||
<return type="int" enum="Error" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="debug" type="bool" /> | ||
<param index="2" name="path" type="String" /> | ||
<param index="3" name="flags" type="int" /> | ||
<description> | ||
[b]Required.[/b] | ||
Create a ZIP archive at [param path] for the specified [param preset]. | ||
</description> | ||
</method> | ||
<method name="_get_binary_extensions" qualifiers="virtual const"> | ||
<return type="PackedStringArray" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<description> | ||
[b]Required.[/b] | ||
Returns array of supported binary extensions for the full project export. | ||
</description> | ||
</method> | ||
<method name="_get_debug_protocol" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Returns protocol used for remote debugging. Default implementation return [code]tcp://[/code]. | ||
</description> | ||
</method> | ||
<method name="_get_device_architecture" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<param index="0" name="device" type="int" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Returns device architecture for one-click deploy. | ||
</description> | ||
</method> | ||
<method name="_get_export_option_visibility" qualifiers="virtual const"> | ||
<return type="bool" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="option" type="String" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Validates [param option] and returns visiblility for the specified [param preset]. Default implementation return [code]true[/code] for all options. | ||
</description> | ||
</method> | ||
<method name="_get_export_option_warning" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="option" type="StringName" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Validates [param option] and returns warning message for the specified [param preset]. Default implementation return empty string for all options. | ||
</description> | ||
</method> | ||
<method name="_get_export_options" qualifiers="virtual const"> | ||
<return type="Dictionary[]" /> | ||
<description> | ||
[b]Optional.[/b] | ||
Returns a property list, as an [Array] of dictionaries. Each [Dictionary] must at least contain the [code]name[/code] and [code]type[/code] entries. | ||
TODO full key-vallue list | ||
</description> | ||
</method> | ||
<method name="_get_logo" qualifiers="virtual const"> | ||
<return type="Texture2D" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_name" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_option_icon" qualifiers="virtual const"> | ||
<return type="ImageTexture" /> | ||
<param index="0" name="device" type="int" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_option_label" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<param index="0" name="device" type="int" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_option_tooltip" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<param index="0" name="device" type="int" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_options_count" qualifiers="virtual const"> | ||
<return type="int" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_options_tooltip" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_os_name" qualifiers="virtual const"> | ||
<return type="String" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_platform_features" qualifiers="virtual const"> | ||
<return type="PackedStringArray" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_preset_features" qualifiers="virtual const"> | ||
<return type="PackedStringArray" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_get_run_icon" qualifiers="virtual const"> | ||
<return type="Texture2D" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_has_valid_export_configuration" qualifiers="virtual const"> | ||
<return type="bool" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="debug" type="bool" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_has_valid_project_configuration" qualifiers="virtual const"> | ||
<return type="bool" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_is_executable" qualifiers="virtual const"> | ||
<return type="bool" /> | ||
<param index="0" name="path" type="String" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_poll_export" qualifiers="virtual"> | ||
<return type="bool" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_resolve_platform_feature_priorities" qualifiers="virtual"> | ||
<return type="void" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="features" type="PackedStringArray" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_run" qualifiers="virtual"> | ||
<return type="int" enum="Error" /> | ||
<param index="0" name="preset" type="EditorExportPreset" /> | ||
<param index="1" name="device" type="int" /> | ||
<param index="2" name="debug_flags" type="int" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="_should_update_export_options" qualifiers="virtual"> | ||
<return type="bool" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="get_config_error" qualifiers="const"> | ||
<return type="String" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="get_config_missing_templates" qualifiers="const"> | ||
<return type="bool" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="set_config_error"> | ||
<return type="void" /> | ||
<param index="0" name="error_text" type="String" /> | ||
<description> | ||
</description> | ||
</method> | ||
<method name="set_config_missing_templates"> | ||
<return type="void" /> | ||
<param index="0" name="missing_templates" type="bool" /> | ||
<description> | ||
</description> | ||
</method> | ||
</methods> | ||
</class> |
Oops, something went wrong.