summaryrefslogtreecommitdiff
path: root/doc/classes/ResourceFormatSaver.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/ResourceFormatSaver.xml')
-rw-r--r--doc/classes/ResourceFormatSaver.xml34
1 files changed, 13 insertions, 21 deletions
diff --git a/doc/classes/ResourceFormatSaver.xml b/doc/classes/ResourceFormatSaver.xml
index 69f8b43898..7ee8875321 100644
--- a/doc/classes/ResourceFormatSaver.xml
+++ b/doc/classes/ResourceFormatSaver.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<class name="ResourceFormatSaver" inherits="Reference" version="4.0">
+<class name="ResourceFormatSaver" inherits="RefCounted" version="4.0">
<brief_description>
Saves a specific resource type to a file.
</brief_description>
@@ -10,33 +10,25 @@
<tutorials>
</tutorials>
<methods>
- <method name="get_recognized_extensions" qualifiers="virtual">
- <return type="PackedStringArray">
- </return>
- <argument index="0" name="resource" type="Resource">
- </argument>
+ <method name="_get_recognized_extensions" qualifiers="virtual const">
+ <return type="PackedStringArray" />
+ <argument index="0" name="resource" type="Resource" />
<description>
- Returns the list of extensions available for saving the resource object, provided it is recognized (see [method recognize]).
+ Returns the list of extensions available for saving the resource object, provided it is recognized (see [method _recognize]).
</description>
</method>
- <method name="recognize" qualifiers="virtual">
- <return type="bool">
- </return>
- <argument index="0" name="resource" type="Resource">
- </argument>
+ <method name="_recognize" qualifiers="virtual const">
+ <return type="bool" />
+ <argument index="0" name="resource" type="Resource" />
<description>
Returns whether the given resource object can be saved by this saver.
</description>
</method>
- <method name="save" qualifiers="virtual">
- <return type="int">
- </return>
- <argument index="0" name="path" type="String">
- </argument>
- <argument index="1" name="resource" type="Resource">
- </argument>
- <argument index="2" name="flags" type="int">
- </argument>
+ <method name="_save" qualifiers="virtual">
+ <return type="int" />
+ <argument index="0" name="path" type="String" />
+ <argument index="1" name="resource" type="Resource" />
+ <argument index="2" name="flags" type="int" />
<description>
Saves the given resource object to a file at the target [code]path[/code]. [code]flags[/code] is a bitmask composed with [enum ResourceSaver.SaverFlags] constants.
Returns [constant OK] on success, or an [enum Error] constant in case of failure.