Debian Codegraph @

doc/classes/EditorExportPlatformExtension.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="EditorExportPlatformExtension" inherits="EditorExportPlatform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Base class for custom [EditorExportPlatform] implementations (plugins).
5 </brief_description>
6 <description>
7 External [EditorExportPlatform] implementations should inherit from this class.
8 To use [EditorExportPlatform], register it using the [method EditorPlugin.add_export_platform] method first.
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="_can_export" qualifiers="virtual const">
14 <return type="bool" />
15 <param index="0" name="preset" type="EditorExportPreset" />
16 <param index="1" name="debug" type="bool" />
17 <description>
18 Returns [code]true[/code] if the specified [param preset] is valid and can be exported. Use [method set_config_error] and [method set_config_missing_templates] to set error details.
19 Usual implementations call [method _has_valid_export_configuration] and [method _has_valid_project_configuration] to determine if exporting is possible.
20 </description>
21 </method>
22 <method name="_cleanup" qualifiers="virtual">
23 <return type="void" />
24 <description>
25 Called by the editor before platform is unregistered.
26 </description>
27 </method>
28 <method name="_export_pack" qualifiers="virtual">
29 <return type="int" enum="Error" />
30 <param index="0" name="preset" type="EditorExportPreset" />
31 <param index="1" name="debug" type="bool" />
32 <param index="2" name="path" type="String" />
33 <param index="3" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" />
34 <description>
35 Creates a PCK archive at [param path] for the specified [param preset].
36 This method is called when "Export PCK/ZIP" button is pressed in the export dialog, with "Export as Patch" disabled, and PCK is selected as a file type.
37 </description>
38 </method>
39 <method name="_export_pack_patch" qualifiers="virtual">
40 <return type="int" enum="Error" />
41 <param index="0" name="preset" type="EditorExportPreset" />
42 <param index="1" name="debug" type="bool" />
43 <param index="2" name="path" type="String" />
44 <param index="3" name="patches" type="PackedStringArray" />
45 <param index="4" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" />
46 <description>
47 Creates a patch PCK archive at [param path] for the specified [param preset], containing only the files that have changed since the last patch.
48 This method is called when "Export PCK/ZIP" button is pressed in the export dialog, with "Export as Patch" enabled, and PCK is selected as a file type.
49 [b]Note:[/b] The patches provided in [param patches] have already been loaded when this method is called and are merely provided as context. When empty the patches defined in the export preset have been loaded instead.
50 </description>
51 </method>
52 <method name="_export_project" qualifiers="virtual required">
53 <return type="int" enum="Error" />
54 <param index="0" name="preset" type="EditorExportPreset" />
55 <param index="1" name="debug" type="bool" />
56 <param index="2" name="path" type="String" />
57 <param index="3" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" />
58 <description>
59 Creates a full project at [param path] for the specified [param preset].
60 This method is called when "Export" button is pressed in the export dialog.
61 This method implementation can call [method EditorExportPlatform.save_pack] or [method EditorExportPlatform.save_zip] to use default PCK/ZIP export process, or calls [method EditorExportPlatform.export_project_files] and implement custom callback for processing each exported file.
62 </description>
63 </method>
64 <method name="_export_zip" qualifiers="virtual">
65 <return type="int" enum="Error" />
66 <param index="0" name="preset" type="EditorExportPreset" />
67 <param index="1" name="debug" type="bool" />
68 <param index="2" name="path" type="String" />
69 <param index="3" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" />
70 <description>
71 Create a ZIP archive at [param path] for the specified [param preset].
72 This method is called when "Export PCK/ZIP" button is pressed in the export dialog, with "Export as Patch" disabled, and ZIP is selected as a file type.
73 </description>
74 </method>
75 <method name="_export_zip_patch" qualifiers="virtual">
76 <return type="int" enum="Error" />
77 <param index="0" name="preset" type="EditorExportPreset" />
78 <param index="1" name="debug" type="bool" />
79 <param index="2" name="path" type="String" />
80 <param index="3" name="patches" type="PackedStringArray" />
81 <param index="4" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" />
82 <description>
83 Create a ZIP archive at [param path] for the specified [param preset], containing only the files that have changed since the last patch.
84 This method is called when "Export PCK/ZIP" button is pressed in the export dialog, with "Export as Patch" enabled, and ZIP is selected as a file type.
85 [b]Note:[/b] The patches provided in [param patches] have already been loaded when this method is called and are merely provided as context. When empty the patches defined in the export preset have been loaded instead.
86 </description>
87 </method>
88 <method name="_get_binary_extensions" qualifiers="virtual required const">
89 <return type="PackedStringArray" />
90 <param index="0" name="preset" type="EditorExportPreset" />
91 <description>
92 Returns array of supported binary extensions for the full project export.
93 </description>
94 </method>
95 <method name="_get_debug_protocol" qualifiers="virtual const">
96 <return type="String" />
97 <description>
98 Returns protocol used for remote debugging. Default implementation return [code]tcp://[/code].
99 </description>
100 </method>
101 <method name="_get_device_architecture" qualifiers="virtual const">
102 <return type="String" />
103 <param index="0" name="device" type="int" />
104 <description>
105 Returns device architecture for one-click deploy.
106 </description>
107 </method>
108 <method name="_get_export_option_visibility" qualifiers="virtual const">
109 <return type="bool" />
110 <param index="0" name="preset" type="EditorExportPreset" />
111 <param index="1" name="option" type="String" />
112 <description>
113 Validates [param option] and returns visibility for the specified [param preset]. Default implementation return [code]true[/code] for all options.
114 </description>
115 </method>
116 <method name="_get_export_option_warning" qualifiers="virtual const">
117 <return type="String" />
118 <param index="0" name="preset" type="EditorExportPreset" />
119 <param index="1" name="option" type="StringName" />
120 <description>
121 Validates [param option] and returns warning message for the specified [param preset]. Default implementation return empty string for all options.
122 </description>
123 </method>
124 <method name="_get_export_options" qualifiers="virtual const">
125 <return type="Dictionary[]" />
126 <description>
127 Returns a property list, as an [Array] of dictionaries. Each [Dictionary] must at least contain the [code]name: StringName[/code] and [code]type: Variant.Type[/code] entries.
128 Additionally, the following keys are supported:
129 - [code]hint: PropertyHint[/code]
130 - [code]hint_string: String[/code]
131 - [code]usage: PropertyUsageFlags[/code]
132 - [code]class_name: StringName[/code]
133 - [code]default_value: Variant[/code], default value of the property.
134 - [code]update_visibility: bool[/code], if set to [code]true[/code], [method _get_export_option_visibility] is called for each property when this property is changed.
135 - [code]required: bool[/code], if set to [code]true[/code], this property warnings are critical, and should be resolved to make export possible. This value is a hint for the [method _has_valid_export_configuration] implementation, and not used by the engine directly.
136 See also [method Object._get_property_list].
137 </description>
138 </method>
139 <method name="_get_logo" qualifiers="virtual required const">
140 <return type="Texture2D" />
141 <description>
142 Returns the platform logo displayed in the export dialog. The logo should be 32×32 pixels, adjusted for the current editor scale (see [method EditorInterface.get_editor_scale]).
143 </description>
144 </method>
145 <method name="_get_name" qualifiers="virtual required const">
146 <return type="String" />
147 <description>
148 Returns export platform name.
149 </description>
150 </method>
151 <method name="_get_option_icon" qualifiers="virtual const">
152 <return type="Texture2D" />
153 <param index="0" name="device" type="int" />
154 <description>
155 Returns the item icon for the specified [param device] in the one-click deploy menu. The icon should be 16×16 pixels, adjusted for the current editor scale (see [method EditorInterface.get_editor_scale]).
156 </description>
157 </method>
158 <method name="_get_option_label" qualifiers="virtual const">
159 <return type="String" />
160 <param index="0" name="device" type="int" />
161 <description>
162 Returns one-click deploy menu item label for the specified [param device].
163 </description>
164 </method>
165 <method name="_get_option_tooltip" qualifiers="virtual const">
166 <return type="String" />
167 <param index="0" name="device" type="int" />
168 <description>
169 Returns one-click deploy menu item tooltip for the specified [param device].
170 </description>
171 </method>
172 <method name="_get_options_count" qualifiers="virtual const">
173 <return type="int" />
174 <description>
175 Returns the number of devices (or other options) available in the one-click deploy menu.
176 </description>
177 </method>
178 <method name="_get_options_tooltip" qualifiers="virtual const">
179 <return type="String" />
180 <description>
181 Returns tooltip of the one-click deploy menu button.
182 </description>
183 </method>
184 <method name="_get_os_name" qualifiers="virtual required const">
185 <return type="String" />
186 <description>
187 Returns target OS name.
188 </description>
189 </method>
190 <method name="_get_platform_features" qualifiers="virtual required const">
191 <return type="PackedStringArray" />
192 <description>
193 Returns array of platform specific features.
194 </description>
195 </method>
196 <method name="_get_preset_features" qualifiers="virtual required const">
197 <return type="PackedStringArray" />
198 <param index="0" name="preset" type="EditorExportPreset" />
199 <description>
200 Returns array of platform specific features for the specified [param preset].
201 </description>
202 </method>
203 <method name="_get_run_icon" qualifiers="virtual const">
204 <return type="Texture2D" />
205 <description>
206 Returns the icon of the one-click deploy menu button. The icon should be 16×16 pixels, adjusted for the current editor scale (see [method EditorInterface.get_editor_scale]).
207 </description>
208 </method>
209 <method name="_has_valid_export_configuration" qualifiers="virtual required const">
210 <return type="bool" />
211 <param index="0" name="preset" type="EditorExportPreset" />
212 <param index="1" name="debug" type="bool" />
213 <description>
214 Returns [code]true[/code] if export configuration is valid.
215 </description>
216 </method>
217 <method name="_has_valid_project_configuration" qualifiers="virtual required const">
218 <return type="bool" />
219 <param index="0" name="preset" type="EditorExportPreset" />
220 <description>
221 Returns [code]true[/code] if project configuration is valid.
222 </description>
223 </method>
224 <method name="_initialize" qualifiers="virtual">
225 <return type="void" />
226 <description>
227 Initializes the plugin. Called by the editor when platform is registered.
228 </description>
229 </method>
230 <method name="_is_executable" qualifiers="virtual const">
231 <return type="bool" />
232 <param index="0" name="path" type="String" />
233 <description>
234 Returns [code]true[/code] if specified file is a valid executable (native executable or script) for the target platform.
235 </description>
236 </method>
237 <method name="_poll_export" qualifiers="virtual">
238 <return type="bool" />
239 <description>
240 Returns [code]true[/code] if one-click deploy options are changed and editor interface should be updated.
241 </description>
242 </method>
243 <method name="_run" qualifiers="virtual">
244 <return type="int" enum="Error" />
245 <param index="0" name="preset" type="EditorExportPreset" />
246 <param index="1" name="device" type="int" />
247 <param index="2" name="debug_flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" />
248 <description>
249 This method is called when [param device] one-click deploy menu option is selected.
250 Implementation should export project to a temporary location, upload and run it on the specific [param device], or perform another action associated with the menu item.
251 </description>
252 </method>
253 <method name="_should_update_export_options" qualifiers="virtual">
254 <return type="bool" />
255 <description>
256 Returns [code]true[/code] if export options list is changed and presets should be updated.
257 </description>
258 </method>
259 <method name="get_config_error" qualifiers="const">
260 <return type="String" />
261 <description>
262 Returns current configuration error message text. This method should be called only from the [method _can_export], [method _has_valid_export_configuration], or [method _has_valid_project_configuration] implementations.
263 </description>
264 </method>
265 <method name="get_config_missing_templates" qualifiers="const">
266 <return type="bool" />
267 <description>
268 Returns [code]true[/code] is export templates are missing from the current configuration. This method should be called only from the [method _can_export], [method _has_valid_export_configuration], or [method _has_valid_project_configuration] implementations.
269 </description>
270 </method>
271 <method name="set_config_error" qualifiers="const">
272 <return type="void" />
273 <param index="0" name="error_text" type="String" />
274 <description>
275 Sets current configuration error message text. This method should be called only from the [method _can_export], [method _has_valid_export_configuration], or [method _has_valid_project_configuration] implementations.
276 </description>
277 </method>
278 <method name="set_config_missing_templates" qualifiers="const">
279 <return type="void" />
280 <param index="0" name="missing_templates" type="bool" />
281 <description>
282 Set to [code]true[/code] is export templates are missing from the current configuration. This method should be called only from the [method _can_export], [method _has_valid_export_configuration], or [method _has_valid_project_configuration] implementations.
283 </description>
284 </method>
285 </methods>
286 </class>