summaryrefslogtreecommitdiff
path: root/doc/classes/ResourceSaver.xml
diff options
context:
space:
mode:
authorleogeier <leonard.geier@hotmail.com>2022-05-15 15:42:27 +0200
committerleogeier <leonard.geier@hotmail.com>2022-06-29 21:38:20 +0200
commit359f7fc51f38de59ddf3b417306454dd1b209684 (patch)
treef20b91eb25c8d46ef4679279b2a5555aa7fb28aa /doc/classes/ResourceSaver.xml
parenta7e589df382ef6a2c2557b1b3cbdcfdce389d7b6 (diff)
Exposes methods for adding and removing ResourceFormatLoaders and -Savers in the ClassDB
Diffstat (limited to 'doc/classes/ResourceSaver.xml')
-rw-r--r--doc/classes/ResourceSaver.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/ResourceSaver.xml b/doc/classes/ResourceSaver.xml
index a029fb9acf..815c7e8813 100644
--- a/doc/classes/ResourceSaver.xml
+++ b/doc/classes/ResourceSaver.xml
@@ -10,6 +10,15 @@
<tutorials>
</tutorials>
<methods>
+ <method name="add_resource_format_saver">
+ <return type="void" />
+ <argument index="0" name="format_saver" type="ResourceFormatSaver" />
+ <argument index="1" name="at_front" type="bool" default="false" />
+ <description>
+ Registers a new [ResourceFormatSaver]. The ResourceSaver will use the ResourceFormatSaver as described in [method save].
+ This method is performed implictly for ResourceFormatSavers written in GDScript (see [ResourceFormatSaver] for more information).
+ </description>
+ </method>
<method name="get_recognized_extensions">
<return type="PackedStringArray" />
<argument index="0" name="type" type="Resource" />
@@ -17,6 +26,13 @@
Returns the list of extensions available for saving a resource of a given type.
</description>
</method>
+ <method name="remove_resource_format_saver">
+ <return type="void" />
+ <argument index="0" name="format_saver" type="ResourceFormatSaver" />
+ <description>
+ Unregisters the given [ResourceFormatSaver].
+ </description>
+ </method>
<method name="save">
<return type="int" enum="Error" />
<argument index="0" name="path" type="String" />