Fix ResourceSaver::save method exposition flag parameter
enh: Add FLAG_NONE to SaverFlags in ResourceSaver to fix api inconsistency fix: flags parameter of ResourceSaver::save is now uint32_t to allow flag composition in scripts
This commit is contained in:
parent
2a39a1c221
commit
f9d4f08090
4 changed files with 12 additions and 6 deletions
|
|
@ -21,15 +21,18 @@
|
|||
<return type="int" enum="Error" />
|
||||
<argument index="0" name="path" type="String" />
|
||||
<argument index="1" name="resource" type="Resource" />
|
||||
<argument index="2" name="flags" type="int" enum="ResourceSaver.SaverFlags" default="0" />
|
||||
<argument index="2" name="flags" type="int" default="0" />
|
||||
<description>
|
||||
Saves a resource to disk to the given path, using a [ResourceFormatSaver] that recognizes the resource object.
|
||||
The [code]flags[/code] bitmask can be specified to customize the save behavior.
|
||||
The [code]flags[/code] bitmask can be specified to customize the save behavior using [enum SaverFlags] flags.
|
||||
Returns [constant OK] on success.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
<constant name="FLAG_NONE" value="0" enum="SaverFlags">
|
||||
No resource saving option.
|
||||
</constant>
|
||||
<constant name="FLAG_RELATIVE_PATHS" value="1" enum="SaverFlags">
|
||||
Save the resource with a path relative to the scene which uses it.
|
||||
</constant>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue