| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="ScriptLanguageExtension" inherits="ScriptLanguage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | </brief_description> |
| 5 | <description> |
| 6 | </description> |
| 7 | <tutorials> |
| 8 | </tutorials> |
| 9 | <methods> |
| 10 | <method name="_add_global_constant" qualifiers="virtual required"> |
| 11 | <return type="void" /> |
| 12 | <param index="0" name="name" type="StringName" /> |
| 13 | <param index="1" name="value" type="Variant" /> |
| 14 | <description> |
| 15 | </description> |
| 16 | </method> |
| 17 | <method name="_add_named_global_constant" qualifiers="virtual required"> |
| 18 | <return type="void" /> |
| 19 | <param index="0" name="name" type="StringName" /> |
| 20 | <param index="1" name="value" type="Variant" /> |
| 21 | <description> |
| 22 | </description> |
| 23 | </method> |
| 24 | <method name="_auto_indent_code" qualifiers="virtual required const"> |
| 25 | <return type="String" /> |
| 26 | <param index="0" name="code" type="String" /> |
| 27 | <param index="1" name="from_line" type="int" /> |
| 28 | <param index="2" name="to_line" type="int" /> |
| 29 | <description> |
| 30 | </description> |
| 31 | </method> |
| 32 | <method name="_can_inherit_from_file" qualifiers="virtual required const"> |
| 33 | <return type="bool" /> |
| 34 | <description> |
| 35 | </description> |
| 36 | </method> |
| 37 | <method name="_can_make_function" qualifiers="virtual required const"> |
| 38 | <return type="bool" /> |
| 39 | <description> |
| 40 | </description> |
| 41 | </method> |
| 42 | <method name="_complete_code" qualifiers="virtual required const"> |
| 43 | <return type="Dictionary" /> |
| 44 | <param index="0" name="code" type="String" /> |
| 45 | <param index="1" name="path" type="String" /> |
| 46 | <param index="2" name="owner" type="Object" /> |
| 47 | <description> |
| 48 | </description> |
| 49 | </method> |
| 50 | <method name="_create_script" qualifiers="virtual required const"> |
| 51 | <return type="Object" /> |
| 52 | <description> |
| 53 | </description> |
| 54 | </method> |
| 55 | <method name="_debug_get_current_stack_info" qualifiers="virtual required"> |
| 56 | <return type="Dictionary[]" /> |
| 57 | <description> |
| 58 | </description> |
| 59 | </method> |
| 60 | <method name="_debug_get_error" qualifiers="virtual required const"> |
| 61 | <return type="String" /> |
| 62 | <description> |
| 63 | </description> |
| 64 | </method> |
| 65 | <method name="_debug_get_globals" qualifiers="virtual required"> |
| 66 | <return type="Dictionary" /> |
| 67 | <param index="0" name="max_subitems" type="int" /> |
| 68 | <param index="1" name="max_depth" type="int" /> |
| 69 | <description> |
| 70 | </description> |
| 71 | </method> |
| 72 | <method name="_debug_get_stack_level_count" qualifiers="virtual required const"> |
| 73 | <return type="int" /> |
| 74 | <description> |
| 75 | </description> |
| 76 | </method> |
| 77 | <method name="_debug_get_stack_level_function" qualifiers="virtual required const"> |
| 78 | <return type="String" /> |
| 79 | <param index="0" name="level" type="int" /> |
| 80 | <description> |
| 81 | </description> |
| 82 | </method> |
| 83 | <method name="_debug_get_stack_level_instance" qualifiers="virtual required"> |
| 84 | <return type="void*" /> |
| 85 | <param index="0" name="level" type="int" /> |
| 86 | <description> |
| 87 | </description> |
| 88 | </method> |
| 89 | <method name="_debug_get_stack_level_line" qualifiers="virtual required const"> |
| 90 | <return type="int" /> |
| 91 | <param index="0" name="level" type="int" /> |
| 92 | <description> |
| 93 | </description> |
| 94 | </method> |
| 95 | <method name="_debug_get_stack_level_locals" qualifiers="virtual required"> |
| 96 | <return type="Dictionary" /> |
| 97 | <param index="0" name="level" type="int" /> |
| 98 | <param index="1" name="max_subitems" type="int" /> |
| 99 | <param index="2" name="max_depth" type="int" /> |
| 100 | <description> |
| 101 | </description> |
| 102 | </method> |
| 103 | <method name="_debug_get_stack_level_members" qualifiers="virtual required"> |
| 104 | <return type="Dictionary" /> |
| 105 | <param index="0" name="level" type="int" /> |
| 106 | <param index="1" name="max_subitems" type="int" /> |
| 107 | <param index="2" name="max_depth" type="int" /> |
| 108 | <description> |
| 109 | </description> |
| 110 | </method> |
| 111 | <method name="_debug_get_stack_level_source" qualifiers="virtual required const"> |
| 112 | <return type="String" /> |
| 113 | <param index="0" name="level" type="int" /> |
| 114 | <description> |
| 115 | Returns the source associated with a given debug stack position. |
| 116 | </description> |
| 117 | </method> |
| 118 | <method name="_debug_parse_stack_level_expression" qualifiers="virtual required"> |
| 119 | <return type="String" /> |
| 120 | <param index="0" name="level" type="int" /> |
| 121 | <param index="1" name="expression" type="String" /> |
| 122 | <param index="2" name="max_subitems" type="int" /> |
| 123 | <param index="3" name="max_depth" type="int" /> |
| 124 | <description> |
| 125 | </description> |
| 126 | </method> |
| 127 | <method name="_find_function" qualifiers="virtual required const"> |
| 128 | <return type="int" /> |
| 129 | <param index="0" name="function" type="String" /> |
| 130 | <param index="1" name="code" type="String" /> |
| 131 | <description> |
| 132 | Returns the line where the function is defined in the code, or [code]-1[/code] if the function is not present. |
| 133 | </description> |
| 134 | </method> |
| 135 | <method name="_finish" qualifiers="virtual required"> |
| 136 | <return type="void" /> |
| 137 | <description> |
| 138 | </description> |
| 139 | </method> |
| 140 | <method name="_frame" qualifiers="virtual required"> |
| 141 | <return type="void" /> |
| 142 | <description> |
| 143 | </description> |
| 144 | </method> |
| 145 | <method name="_get_built_in_templates" qualifiers="virtual required const"> |
| 146 | <return type="Dictionary[]" /> |
| 147 | <param index="0" name="object" type="StringName" /> |
| 148 | <description> |
| 149 | </description> |
| 150 | </method> |
| 151 | <method name="_get_comment_delimiters" qualifiers="virtual required const"> |
| 152 | <return type="PackedStringArray" /> |
| 153 | <description> |
| 154 | </description> |
| 155 | </method> |
| 156 | <method name="_get_doc_comment_delimiters" qualifiers="virtual const"> |
| 157 | <return type="PackedStringArray" /> |
| 158 | <description> |
| 159 | </description> |
| 160 | </method> |
| 161 | <method name="_get_extension" qualifiers="virtual required const"> |
| 162 | <return type="String" /> |
| 163 | <description> |
| 164 | </description> |
| 165 | </method> |
| 166 | <method name="_get_global_class_name" qualifiers="virtual required const"> |
| 167 | <return type="Dictionary" /> |
| 168 | <param index="0" name="path" type="String" /> |
| 169 | <description> |
| 170 | </description> |
| 171 | </method> |
| 172 | <method name="_get_name" qualifiers="virtual required const"> |
| 173 | <return type="String" /> |
| 174 | <description> |
| 175 | </description> |
| 176 | </method> |
| 177 | <method name="_get_public_annotations" qualifiers="virtual required const"> |
| 178 | <return type="Dictionary[]" /> |
| 179 | <description> |
| 180 | </description> |
| 181 | </method> |
| 182 | <method name="_get_public_constants" qualifiers="virtual required const"> |
| 183 | <return type="Dictionary" /> |
| 184 | <description> |
| 185 | </description> |
| 186 | </method> |
| 187 | <method name="_get_public_functions" qualifiers="virtual required const"> |
| 188 | <return type="Dictionary[]" /> |
| 189 | <description> |
| 190 | </description> |
| 191 | </method> |
| 192 | <method name="_get_recognized_extensions" qualifiers="virtual required const"> |
| 193 | <return type="PackedStringArray" /> |
| 194 | <description> |
| 195 | </description> |
| 196 | </method> |
| 197 | <method name="_get_reserved_words" qualifiers="virtual required const"> |
| 198 | <return type="PackedStringArray" /> |
| 199 | <description> |
| 200 | </description> |
| 201 | </method> |
| 202 | <method name="_get_string_delimiters" qualifiers="virtual required const"> |
| 203 | <return type="PackedStringArray" /> |
| 204 | <description> |
| 205 | </description> |
| 206 | </method> |
| 207 | <method name="_get_type" qualifiers="virtual required const"> |
| 208 | <return type="String" /> |
| 209 | <description> |
| 210 | </description> |
| 211 | </method> |
| 212 | <method name="_handles_global_class_type" qualifiers="virtual required const"> |
| 213 | <return type="bool" /> |
| 214 | <param index="0" name="type" type="String" /> |
| 215 | <description> |
| 216 | </description> |
| 217 | </method> |
| 218 | <method name="_has_named_classes" qualifiers="virtual const" deprecated="This method is not called by the engine."> |
| 219 | <return type="bool" /> |
| 220 | <description> |
| 221 | </description> |
| 222 | </method> |
| 223 | <method name="_init" qualifiers="virtual required"> |
| 224 | <return type="void" /> |
| 225 | <description> |
| 226 | </description> |
| 227 | </method> |
| 228 | <method name="_is_control_flow_keyword" qualifiers="virtual required const"> |
| 229 | <return type="bool" /> |
| 230 | <param index="0" name="keyword" type="String" /> |
| 231 | <description> |
| 232 | </description> |
| 233 | </method> |
| 234 | <method name="_is_using_templates" qualifiers="virtual required"> |
| 235 | <return type="bool" /> |
| 236 | <description> |
| 237 | </description> |
| 238 | </method> |
| 239 | <method name="_lookup_code" qualifiers="virtual required const"> |
| 240 | <return type="Dictionary" /> |
| 241 | <param index="0" name="code" type="String" /> |
| 242 | <param index="1" name="symbol" type="String" /> |
| 243 | <param index="2" name="path" type="String" /> |
| 244 | <param index="3" name="owner" type="Object" /> |
| 245 | <description> |
| 246 | </description> |
| 247 | </method> |
| 248 | <method name="_make_function" qualifiers="virtual required const"> |
| 249 | <return type="String" /> |
| 250 | <param index="0" name="class_name" type="String" /> |
| 251 | <param index="1" name="function_name" type="String" /> |
| 252 | <param index="2" name="function_args" type="PackedStringArray" /> |
| 253 | <description> |
| 254 | </description> |
| 255 | </method> |
| 256 | <method name="_make_template" qualifiers="virtual required const"> |
| 257 | <return type="Script" /> |
| 258 | <param index="0" name="template" type="String" /> |
| 259 | <param index="1" name="class_name" type="String" /> |
| 260 | <param index="2" name="base_class_name" type="String" /> |
| 261 | <description> |
| 262 | </description> |
| 263 | </method> |
| 264 | <method name="_open_in_external_editor" qualifiers="virtual required"> |
| 265 | <return type="int" enum="Error" /> |
| 266 | <param index="0" name="script" type="Script" /> |
| 267 | <param index="1" name="line" type="int" /> |
| 268 | <param index="2" name="column" type="int" /> |
| 269 | <description> |
| 270 | </description> |
| 271 | </method> |
| 272 | <method name="_overrides_external_editor" qualifiers="virtual required"> |
| 273 | <return type="bool" /> |
| 274 | <description> |
| 275 | </description> |
| 276 | </method> |
| 277 | <method name="_preferred_file_name_casing" qualifiers="virtual const"> |
| 278 | <return type="int" enum="ScriptLanguage.ScriptNameCasing" /> |
| 279 | <description> |
| 280 | </description> |
| 281 | </method> |
| 282 | <method name="_profiling_get_accumulated_data" qualifiers="virtual required"> |
| 283 | <return type="int" /> |
| 284 | <param index="0" name="info_array" type="ScriptLanguageExtensionProfilingInfo*" /> |
| 285 | <param index="1" name="info_max" type="int" /> |
| 286 | <description> |
| 287 | </description> |
| 288 | </method> |
| 289 | <method name="_profiling_get_frame_data" qualifiers="virtual required"> |
| 290 | <return type="int" /> |
| 291 | <param index="0" name="info_array" type="ScriptLanguageExtensionProfilingInfo*" /> |
| 292 | <param index="1" name="info_max" type="int" /> |
| 293 | <description> |
| 294 | </description> |
| 295 | </method> |
| 296 | <method name="_profiling_set_save_native_calls" qualifiers="virtual required"> |
| 297 | <return type="void" /> |
| 298 | <param index="0" name="enable" type="bool" /> |
| 299 | <description> |
| 300 | </description> |
| 301 | </method> |
| 302 | <method name="_profiling_start" qualifiers="virtual required"> |
| 303 | <return type="void" /> |
| 304 | <description> |
| 305 | </description> |
| 306 | </method> |
| 307 | <method name="_profiling_stop" qualifiers="virtual required"> |
| 308 | <return type="void" /> |
| 309 | <description> |
| 310 | </description> |
| 311 | </method> |
| 312 | <method name="_reload_all_scripts" qualifiers="virtual required"> |
| 313 | <return type="void" /> |
| 314 | <description> |
| 315 | </description> |
| 316 | </method> |
| 317 | <method name="_reload_scripts" qualifiers="virtual required"> |
| 318 | <return type="void" /> |
| 319 | <param index="0" name="scripts" type="Array" /> |
| 320 | <param index="1" name="soft_reload" type="bool" /> |
| 321 | <description> |
| 322 | </description> |
| 323 | </method> |
| 324 | <method name="_reload_tool_script" qualifiers="virtual required"> |
| 325 | <return type="void" /> |
| 326 | <param index="0" name="script" type="Script" /> |
| 327 | <param index="1" name="soft_reload" type="bool" /> |
| 328 | <description> |
| 329 | </description> |
| 330 | </method> |
| 331 | <method name="_remove_named_global_constant" qualifiers="virtual required"> |
| 332 | <return type="void" /> |
| 333 | <param index="0" name="name" type="StringName" /> |
| 334 | <description> |
| 335 | </description> |
| 336 | </method> |
| 337 | <method name="_supports_builtin_mode" qualifiers="virtual required const"> |
| 338 | <return type="bool" /> |
| 339 | <description> |
| 340 | </description> |
| 341 | </method> |
| 342 | <method name="_supports_documentation" qualifiers="virtual required const"> |
| 343 | <return type="bool" /> |
| 344 | <description> |
| 345 | </description> |
| 346 | </method> |
| 347 | <method name="_thread_enter" qualifiers="virtual required"> |
| 348 | <return type="void" /> |
| 349 | <description> |
| 350 | </description> |
| 351 | </method> |
| 352 | <method name="_thread_exit" qualifiers="virtual required"> |
| 353 | <return type="void" /> |
| 354 | <description> |
| 355 | </description> |
| 356 | </method> |
| 357 | <method name="_validate" qualifiers="virtual required const"> |
| 358 | <return type="Dictionary" /> |
| 359 | <param index="0" name="script" type="String" /> |
| 360 | <param index="1" name="path" type="String" /> |
| 361 | <param index="2" name="validate_functions" type="bool" /> |
| 362 | <param index="3" name="validate_errors" type="bool" /> |
| 363 | <param index="4" name="validate_warnings" type="bool" /> |
| 364 | <param index="5" name="validate_safe_lines" type="bool" /> |
| 365 | <description> |
| 366 | </description> |
| 367 | </method> |
| 368 | <method name="_validate_path" qualifiers="virtual required const"> |
| 369 | <return type="String" /> |
| 370 | <param index="0" name="path" type="String" /> |
| 371 | <description> |
| 372 | </description> |
| 373 | </method> |
| 374 | </methods> |
| 375 | <constants> |
| 376 | <constant name="LOOKUP_RESULT_SCRIPT_LOCATION" value="0" enum="LookupResultType"> |
| 377 | </constant> |
| 378 | <constant name="LOOKUP_RESULT_CLASS" value="1" enum="LookupResultType"> |
| 379 | </constant> |
| 380 | <constant name="LOOKUP_RESULT_CLASS_CONSTANT" value="2" enum="LookupResultType"> |
| 381 | </constant> |
| 382 | <constant name="LOOKUP_RESULT_CLASS_PROPERTY" value="3" enum="LookupResultType"> |
| 383 | </constant> |
| 384 | <constant name="LOOKUP_RESULT_CLASS_METHOD" value="4" enum="LookupResultType"> |
| 385 | </constant> |
| 386 | <constant name="LOOKUP_RESULT_CLASS_SIGNAL" value="5" enum="LookupResultType"> |
| 387 | </constant> |
| 388 | <constant name="LOOKUP_RESULT_CLASS_ENUM" value="6" enum="LookupResultType"> |
| 389 | </constant> |
| 390 | <constant name="LOOKUP_RESULT_CLASS_TBD_GLOBALSCOPE" value="7" enum="LookupResultType" deprecated=""> |
| 391 | </constant> |
| 392 | <constant name="LOOKUP_RESULT_CLASS_ANNOTATION" value="8" enum="LookupResultType"> |
| 393 | </constant> |
| 394 | <constant name="LOOKUP_RESULT_LOCAL_CONSTANT" value="9" enum="LookupResultType"> |
| 395 | </constant> |
| 396 | <constant name="LOOKUP_RESULT_LOCAL_VARIABLE" value="10" enum="LookupResultType"> |
| 397 | </constant> |
| 398 | <constant name="LOOKUP_RESULT_MAX" value="11" enum="LookupResultType"> |
| 399 | </constant> |
| 400 | <constant name="LOCATION_LOCAL" value="0" enum="CodeCompletionLocation"> |
| 401 | The option is local to the location of the code completion query - e.g. a local variable. Subsequent value of location represent options from the outer class, the exact value represent how far they are (in terms of inner classes). |
| 402 | </constant> |
| 403 | <constant name="LOCATION_PARENT_MASK" value="256" enum="CodeCompletionLocation"> |
| 404 | The option is from the containing class or a parent class, relative to the location of the code completion query. Perform a bitwise OR with the class depth (e.g. [code]0[/code] for the local class, [code]1[/code] for the parent, [code]2[/code] for the grandparent, etc.) to store the depth of an option in the class or a parent class. |
| 405 | </constant> |
| 406 | <constant name="LOCATION_OTHER_USER_CODE" value="512" enum="CodeCompletionLocation"> |
| 407 | The option is from user code which is not local and not in a derived class (e.g. Autoload Singletons). |
| 408 | </constant> |
| 409 | <constant name="LOCATION_OTHER" value="1024" enum="CodeCompletionLocation"> |
| 410 | The option is from other engine code, not covered by the other enum constants - e.g. built-in classes. |
| 411 | </constant> |
| 412 | <constant name="CODE_COMPLETION_KIND_CLASS" value="0" enum="CodeCompletionKind"> |
| 413 | </constant> |
| 414 | <constant name="CODE_COMPLETION_KIND_FUNCTION" value="1" enum="CodeCompletionKind"> |
| 415 | </constant> |
| 416 | <constant name="CODE_COMPLETION_KIND_SIGNAL" value="2" enum="CodeCompletionKind"> |
| 417 | </constant> |
| 418 | <constant name="CODE_COMPLETION_KIND_VARIABLE" value="3" enum="CodeCompletionKind"> |
| 419 | </constant> |
| 420 | <constant name="CODE_COMPLETION_KIND_MEMBER" value="4" enum="CodeCompletionKind"> |
| 421 | </constant> |
| 422 | <constant name="CODE_COMPLETION_KIND_ENUM" value="5" enum="CodeCompletionKind"> |
| 423 | </constant> |
| 424 | <constant name="CODE_COMPLETION_KIND_CONSTANT" value="6" enum="CodeCompletionKind"> |
| 425 | </constant> |
| 426 | <constant name="CODE_COMPLETION_KIND_NODE_PATH" value="7" enum="CodeCompletionKind"> |
| 427 | </constant> |
| 428 | <constant name="CODE_COMPLETION_KIND_FILE_PATH" value="8" enum="CodeCompletionKind"> |
| 429 | </constant> |
| 430 | <constant name="CODE_COMPLETION_KIND_PLAIN_TEXT" value="9" enum="CodeCompletionKind"> |
| 431 | </constant> |
| 432 | <constant name="CODE_COMPLETION_KIND_MAX" value="10" enum="CodeCompletionKind"> |
| 433 | </constant> |
| 434 | </constants> |
| 435 | </class> |