mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
f7f6115f76
- Document a few more properties and methods - Add more information to many classes - Fix lots of typos and gramar mistakes - Use [code] tags for parameters consistently - Use [b] and [i] tags consistently - Put "Warning:" and "Note:" on their own line to be more visible, and make them always bold - Tweak formatting in code examples to be more readable - Use double quotes consistently - Add more links to third-party technologies
130 lines
3.6 KiB
XML
130 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="EditorFileSystemDirectory" inherits="Object" category="Core" version="3.2">
|
|
<brief_description>
|
|
A directory for the resource filesystem.
|
|
</brief_description>
|
|
<description>
|
|
A more generalized, low-level variation of the directory concept.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="find_dir_index" qualifiers="const">
|
|
<return type="int">
|
|
</return>
|
|
<argument index="0" name="name" type="String">
|
|
</argument>
|
|
<description>
|
|
Returns the index of the directory with name [code]name[/code] or [code]-1[/code] if not found.
|
|
</description>
|
|
</method>
|
|
<method name="find_file_index" qualifiers="const">
|
|
<return type="int">
|
|
</return>
|
|
<argument index="0" name="name" type="String">
|
|
</argument>
|
|
<description>
|
|
Returns the index of the file with name [code]name[/code] or [code]-1[/code] if not found.
|
|
</description>
|
|
</method>
|
|
<method name="get_file" qualifiers="const">
|
|
<return type="String">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
Returns the name of the file at index [code]idx[/code].
|
|
</description>
|
|
</method>
|
|
<method name="get_file_count" qualifiers="const">
|
|
<return type="int">
|
|
</return>
|
|
<description>
|
|
Returns the number of files in this directory.
|
|
</description>
|
|
</method>
|
|
<method name="get_file_import_is_valid" qualifiers="const">
|
|
<return type="bool">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
Returns [code]true[/code] if the file at index [code]idx[/code] imported properly.
|
|
</description>
|
|
</method>
|
|
<method name="get_file_path" qualifiers="const">
|
|
<return type="String">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
Returns the path to the file at index [code]idx[/code].
|
|
</description>
|
|
</method>
|
|
<method name="get_file_script_class_extends" qualifiers="const">
|
|
<return type="String">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="get_file_script_class_name" qualifiers="const">
|
|
<return type="String">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="get_file_type" qualifiers="const">
|
|
<return type="String">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
Returns the file extension of the file at index [code]idx[/code].
|
|
</description>
|
|
</method>
|
|
<method name="get_name">
|
|
<return type="String">
|
|
</return>
|
|
<description>
|
|
Returns the name of this directory.
|
|
</description>
|
|
</method>
|
|
<method name="get_parent">
|
|
<return type="EditorFileSystemDirectory">
|
|
</return>
|
|
<description>
|
|
Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code].
|
|
</description>
|
|
</method>
|
|
<method name="get_path" qualifiers="const">
|
|
<return type="String">
|
|
</return>
|
|
<description>
|
|
Returns the path to this directory.
|
|
</description>
|
|
</method>
|
|
<method name="get_subdir">
|
|
<return type="EditorFileSystemDirectory">
|
|
</return>
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
<description>
|
|
Returns the subdirectory at index [code]idx[/code].
|
|
</description>
|
|
</method>
|
|
<method name="get_subdir_count" qualifiers="const">
|
|
<return type="int">
|
|
</return>
|
|
<description>
|
|
Returns the number of subdirectories in this directory.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<constants>
|
|
</constants>
|
|
</class>
|