Expose priority and order for custom import plugins

This commit is contained in:
George Marques
2018-02-13 11:59:56 -02:00
parent 31dd21a8d9
commit c68948fdfa
3 changed files with 32 additions and 0 deletions

View File

@@ -64,6 +64,13 @@
Get the options and default values for the preset at this index. Returns an Array of Dictionaries with the following keys: "name", "default_value", "property_hint" (optional), "hint_string" (optional), "usage" (optional).
</description>
</method>
<method name="get_import_order" qualifiers="virtual">
<return type="int">
</return>
<description>
Get the order of this importer to be run when importing resources. Higher values will be called later. Use this to ensure the importer runs after the dependencies are already imported.
</description>
</method>
<method name="get_importer_name" qualifiers="virtual">
<return type="String">
</return>
@@ -97,6 +104,13 @@
Get the name of the options preset at this index.
</description>
</method>
<method name="get_priority" qualifiers="virtual">
<return type="float">
</return>
<description>
Get the priority of this plugin for the recognized extension. Higher priority plugins will be preferred. Default value is 1.0.
</description>
</method>
<method name="get_recognized_extensions" qualifiers="virtual">
<return type="Array">
</return>