|
15 | 15 | <param index="0" name="preset" type="EditorExportPreset" /> |
16 | 16 | <param index="1" name="debug" type="bool" /> |
17 | 17 | <description> |
18 | | - [b]Optional.[/b] |
19 | 18 | 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. |
20 | 19 | Usual implementation can call [method _has_valid_export_configuration] and [method _has_valid_project_configuration] to determine if export is possible. |
21 | 20 | </description> |
22 | 21 | </method> |
23 | 22 | <method name="_cleanup" qualifiers="virtual"> |
24 | 23 | <return type="void" /> |
25 | 24 | <description> |
26 | | - [b]Optional.[/b] |
27 | 25 | Called by the editor before platform is unregistered. |
28 | 26 | </description> |
29 | 27 | </method> |
|
34 | 32 | <param index="2" name="path" type="String" /> |
35 | 33 | <param index="3" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" /> |
36 | 34 | <description> |
37 | | - [b]Optional.[/b] |
38 | 35 | Creates a PCK archive at [param path] for the specified [param preset]. |
39 | 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. |
40 | 37 | </description> |
|
47 | 44 | <param index="3" name="patches" type="PackedStringArray" /> |
48 | 45 | <param index="4" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" /> |
49 | 46 | <description> |
50 | | - [b]Optional.[/b] |
51 | 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. |
52 | 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. |
53 | 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. |
54 | 50 | </description> |
55 | 51 | </method> |
56 | | - <method name="_export_project" qualifiers="virtual"> |
| 52 | + <method name="_export_project" qualifiers="virtual required"> |
57 | 53 | <return type="int" enum="Error" /> |
58 | 54 | <param index="0" name="preset" type="EditorExportPreset" /> |
59 | 55 | <param index="1" name="debug" type="bool" /> |
60 | 56 | <param index="2" name="path" type="String" /> |
61 | 57 | <param index="3" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" /> |
62 | 58 | <description> |
63 | | - [b]Required.[/b] |
64 | 59 | Creates a full project at [param path] for the specified [param preset]. |
65 | 60 | This method is called when "Export" button is pressed in the export dialog. |
66 | 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. |
|
73 | 68 | <param index="2" name="path" type="String" /> |
74 | 69 | <param index="3" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" /> |
75 | 70 | <description> |
76 | | - [b]Optional.[/b] |
77 | 71 | Create a ZIP archive at [param path] for the specified [param preset]. |
78 | 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. |
79 | 73 | </description> |
|
86 | 80 | <param index="3" name="patches" type="PackedStringArray" /> |
87 | 81 | <param index="4" name="flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" /> |
88 | 82 | <description> |
89 | | - [b]Optional.[/b] |
90 | 83 | Create a ZIP archive at [param path] for the specified [param preset], containing only the files that have changed since the last patch. |
91 | 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. |
92 | 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. |
93 | 86 | </description> |
94 | 87 | </method> |
95 | | - <method name="_get_binary_extensions" qualifiers="virtual const"> |
| 88 | + <method name="_get_binary_extensions" qualifiers="virtual required const"> |
96 | 89 | <return type="PackedStringArray" /> |
97 | 90 | <param index="0" name="preset" type="EditorExportPreset" /> |
98 | 91 | <description> |
99 | | - [b]Required.[/b] |
100 | 92 | Returns array of supported binary extensions for the full project export. |
101 | 93 | </description> |
102 | 94 | </method> |
103 | 95 | <method name="_get_debug_protocol" qualifiers="virtual const"> |
104 | 96 | <return type="String" /> |
105 | 97 | <description> |
106 | | - [b]Optional.[/b] |
107 | 98 | Returns protocol used for remote debugging. Default implementation return [code]tcp://[/code]. |
108 | 99 | </description> |
109 | 100 | </method> |
110 | 101 | <method name="_get_device_architecture" qualifiers="virtual const"> |
111 | 102 | <return type="String" /> |
112 | 103 | <param index="0" name="device" type="int" /> |
113 | 104 | <description> |
114 | | - [b]Optional.[/b] |
115 | 105 | Returns device architecture for one-click deploy. |
116 | 106 | </description> |
117 | 107 | </method> |
|
120 | 110 | <param index="0" name="preset" type="EditorExportPreset" /> |
121 | 111 | <param index="1" name="option" type="String" /> |
122 | 112 | <description> |
123 | | - [b]Optional.[/b] |
124 | 113 | Validates [param option] and returns visibility for the specified [param preset]. Default implementation return [code]true[/code] for all options. |
125 | 114 | </description> |
126 | 115 | </method> |
|
129 | 118 | <param index="0" name="preset" type="EditorExportPreset" /> |
130 | 119 | <param index="1" name="option" type="StringName" /> |
131 | 120 | <description> |
132 | | - [b]Optional.[/b] |
133 | 121 | Validates [param option] and returns warning message for the specified [param preset]. Default implementation return empty string for all options. |
134 | 122 | </description> |
135 | 123 | </method> |
136 | 124 | <method name="_get_export_options" qualifiers="virtual const"> |
137 | 125 | <return type="Dictionary[]" /> |
138 | 126 | <description> |
139 | | - [b]Optional.[/b] |
140 | 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. |
141 | 128 | Additionally, the following keys are supported: |
142 | 129 | - [code]hint: PropertyHint[/code] |
|
149 | 136 | See also [method Object._get_property_list]. |
150 | 137 | </description> |
151 | 138 | </method> |
152 | | - <method name="_get_logo" qualifiers="virtual const"> |
| 139 | + <method name="_get_logo" qualifiers="virtual required const"> |
153 | 140 | <return type="Texture2D" /> |
154 | 141 | <description> |
155 | | - [b]Required.[/b] |
156 | 142 | Returns platform logo displayed in the export dialog, logo should be 32x32 adjusted to the current editor scale, see [method EditorInterface.get_editor_scale]. |
157 | 143 | </description> |
158 | 144 | </method> |
159 | | - <method name="_get_name" qualifiers="virtual const"> |
| 145 | + <method name="_get_name" qualifiers="virtual required const"> |
160 | 146 | <return type="String" /> |
161 | 147 | <description> |
162 | | - [b]Required.[/b] |
163 | 148 | Returns export platform name. |
164 | 149 | </description> |
165 | 150 | </method> |
166 | 151 | <method name="_get_option_icon" qualifiers="virtual const"> |
167 | 152 | <return type="ImageTexture" /> |
168 | 153 | <param index="0" name="device" type="int" /> |
169 | 154 | <description> |
170 | | - [b]Optional.[/b] |
171 | 155 | Returns one-click deploy menu item icon for the specified [param device], icon should be 16x16 adjusted to the current editor scale, see [method EditorInterface.get_editor_scale]. |
172 | 156 | </description> |
173 | 157 | </method> |
174 | 158 | <method name="_get_option_label" qualifiers="virtual const"> |
175 | 159 | <return type="String" /> |
176 | 160 | <param index="0" name="device" type="int" /> |
177 | 161 | <description> |
178 | | - [b]Optional.[/b] |
179 | 162 | Returns one-click deploy menu item label for the specified [param device]. |
180 | 163 | </description> |
181 | 164 | </method> |
182 | 165 | <method name="_get_option_tooltip" qualifiers="virtual const"> |
183 | 166 | <return type="String" /> |
184 | 167 | <param index="0" name="device" type="int" /> |
185 | 168 | <description> |
186 | | - [b]Optional.[/b] |
187 | 169 | Returns one-click deploy menu item tooltip for the specified [param device]. |
188 | 170 | </description> |
189 | 171 | </method> |
190 | 172 | <method name="_get_options_count" qualifiers="virtual const"> |
191 | 173 | <return type="int" /> |
192 | 174 | <description> |
193 | | - [b]Optional.[/b] |
194 | 175 | Returns number one-click deploy devices (or other one-click option displayed in the menu). |
195 | 176 | </description> |
196 | 177 | </method> |
197 | 178 | <method name="_get_options_tooltip" qualifiers="virtual const"> |
198 | 179 | <return type="String" /> |
199 | 180 | <description> |
200 | | - [b]Optional.[/b] |
201 | 181 | Returns tooltip of the one-click deploy menu button. |
202 | 182 | </description> |
203 | 183 | </method> |
204 | | - <method name="_get_os_name" qualifiers="virtual const"> |
| 184 | + <method name="_get_os_name" qualifiers="virtual required const"> |
205 | 185 | <return type="String" /> |
206 | 186 | <description> |
207 | | - [b]Required.[/b] |
208 | 187 | Returns target OS name. |
209 | 188 | </description> |
210 | 189 | </method> |
211 | | - <method name="_get_platform_features" qualifiers="virtual const"> |
| 190 | + <method name="_get_platform_features" qualifiers="virtual required const"> |
212 | 191 | <return type="PackedStringArray" /> |
213 | 192 | <description> |
214 | | - [b]Required.[/b] |
215 | 193 | Returns array of platform specific features. |
216 | 194 | </description> |
217 | 195 | </method> |
218 | | - <method name="_get_preset_features" qualifiers="virtual const"> |
| 196 | + <method name="_get_preset_features" qualifiers="virtual required const"> |
219 | 197 | <return type="PackedStringArray" /> |
220 | 198 | <param index="0" name="preset" type="EditorExportPreset" /> |
221 | 199 | <description> |
222 | | - [b]Required.[/b] |
223 | 200 | Returns array of platform specific features for the specified [param preset]. |
224 | 201 | </description> |
225 | 202 | </method> |
226 | 203 | <method name="_get_run_icon" qualifiers="virtual const"> |
227 | 204 | <return type="Texture2D" /> |
228 | 205 | <description> |
229 | | - [b]Optional.[/b] |
230 | 206 | Returns icon of the one-click deploy menu button, icon should be 16x16 adjusted to the current editor scale, see [method EditorInterface.get_editor_scale]. |
231 | 207 | </description> |
232 | 208 | </method> |
233 | | - <method name="_has_valid_export_configuration" qualifiers="virtual const"> |
| 209 | + <method name="_has_valid_export_configuration" qualifiers="virtual required const"> |
234 | 210 | <return type="bool" /> |
235 | 211 | <param index="0" name="preset" type="EditorExportPreset" /> |
236 | 212 | <param index="1" name="debug" type="bool" /> |
237 | 213 | <description> |
238 | | - [b]Required.[/b] |
239 | 214 | Returns [code]true[/code] if export configuration is valid. |
240 | 215 | </description> |
241 | 216 | </method> |
242 | | - <method name="_has_valid_project_configuration" qualifiers="virtual const"> |
| 217 | + <method name="_has_valid_project_configuration" qualifiers="virtual required const"> |
243 | 218 | <return type="bool" /> |
244 | 219 | <param index="0" name="preset" type="EditorExportPreset" /> |
245 | 220 | <description> |
246 | | - [b]Required.[/b] |
247 | 221 | Returns [code]true[/code] if project configuration is valid. |
248 | 222 | </description> |
249 | 223 | </method> |
250 | 224 | <method name="_is_executable" qualifiers="virtual const"> |
251 | 225 | <return type="bool" /> |
252 | 226 | <param index="0" name="path" type="String" /> |
253 | 227 | <description> |
254 | | - [b]Optional.[/b] |
255 | 228 | Returns [code]true[/code] if specified file is a valid executable (native executable or script) for the target platform. |
256 | 229 | </description> |
257 | 230 | </method> |
258 | 231 | <method name="_poll_export" qualifiers="virtual"> |
259 | 232 | <return type="bool" /> |
260 | 233 | <description> |
261 | | - [b]Optional.[/b] |
262 | 234 | Returns [code]true[/code] if one-click deploy options are changed and editor interface should be updated. |
263 | 235 | </description> |
264 | 236 | </method> |
|
268 | 240 | <param index="1" name="device" type="int" /> |
269 | 241 | <param index="2" name="debug_flags" type="int" enum="EditorExportPlatform.DebugFlags" is_bitfield="true" /> |
270 | 242 | <description> |
271 | | - [b]Optional.[/b] |
272 | 243 | This method is called when [param device] one-click deploy menu option is selected. |
273 | 244 | 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. |
274 | 245 | </description> |
275 | 246 | </method> |
276 | 247 | <method name="_should_update_export_options" qualifiers="virtual"> |
277 | 248 | <return type="bool" /> |
278 | 249 | <description> |
279 | | - [b]Optional.[/b] |
280 | 250 | Returns [code]true[/code] if export options list is changed and presets should be updated. |
281 | 251 | </description> |
282 | 252 | </method> |
|
0 commit comments