EditorFileSystemDirectory.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorFileSystemDirectory" inherits="Object" version="3.3">
  3. <brief_description>
  4. A directory for the resource filesystem.
  5. </brief_description>
  6. <description>
  7. A more generalized, low-level variation of the directory concept.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="find_dir_index" qualifiers="const">
  13. <return type="int">
  14. </return>
  15. <argument index="0" name="name" type="String">
  16. </argument>
  17. <description>
  18. Returns the index of the directory with name [code]name[/code] or [code]-1[/code] if not found.
  19. </description>
  20. </method>
  21. <method name="find_file_index" qualifiers="const">
  22. <return type="int">
  23. </return>
  24. <argument index="0" name="name" type="String">
  25. </argument>
  26. <description>
  27. Returns the index of the file with name [code]name[/code] or [code]-1[/code] if not found.
  28. </description>
  29. </method>
  30. <method name="get_file" qualifiers="const">
  31. <return type="String">
  32. </return>
  33. <argument index="0" name="idx" type="int">
  34. </argument>
  35. <description>
  36. Returns the name of the file at index [code]idx[/code].
  37. </description>
  38. </method>
  39. <method name="get_file_count" qualifiers="const">
  40. <return type="int">
  41. </return>
  42. <description>
  43. Returns the number of files in this directory.
  44. </description>
  45. </method>
  46. <method name="get_file_import_is_valid" qualifiers="const">
  47. <return type="bool">
  48. </return>
  49. <argument index="0" name="idx" type="int">
  50. </argument>
  51. <description>
  52. Returns [code]true[/code] if the file at index [code]idx[/code] imported properly.
  53. </description>
  54. </method>
  55. <method name="get_file_path" qualifiers="const">
  56. <return type="String">
  57. </return>
  58. <argument index="0" name="idx" type="int">
  59. </argument>
  60. <description>
  61. Returns the path to the file at index [code]idx[/code].
  62. </description>
  63. </method>
  64. <method name="get_file_script_class_extends" qualifiers="const">
  65. <return type="String">
  66. </return>
  67. <argument index="0" name="idx" type="int">
  68. </argument>
  69. <description>
  70. Returns the base class of the script class defined in the file at index [code]idx[/code]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string.
  71. </description>
  72. </method>
  73. <method name="get_file_script_class_name" qualifiers="const">
  74. <return type="String">
  75. </return>
  76. <argument index="0" name="idx" type="int">
  77. </argument>
  78. <description>
  79. Returns the name of the script class defined in the file at index [code]idx[/code]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string.
  80. </description>
  81. </method>
  82. <method name="get_file_type" qualifiers="const">
  83. <return type="String">
  84. </return>
  85. <argument index="0" name="idx" type="int">
  86. </argument>
  87. <description>
  88. Returns the file extension of the file at index [code]idx[/code].
  89. </description>
  90. </method>
  91. <method name="get_name">
  92. <return type="String">
  93. </return>
  94. <description>
  95. Returns the name of this directory.
  96. </description>
  97. </method>
  98. <method name="get_parent">
  99. <return type="EditorFileSystemDirectory">
  100. </return>
  101. <description>
  102. Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code].
  103. </description>
  104. </method>
  105. <method name="get_path" qualifiers="const">
  106. <return type="String">
  107. </return>
  108. <description>
  109. Returns the path to this directory.
  110. </description>
  111. </method>
  112. <method name="get_subdir">
  113. <return type="EditorFileSystemDirectory">
  114. </return>
  115. <argument index="0" name="idx" type="int">
  116. </argument>
  117. <description>
  118. Returns the subdirectory at index [code]idx[/code].
  119. </description>
  120. </method>
  121. <method name="get_subdir_count" qualifiers="const">
  122. <return type="int">
  123. </return>
  124. <description>
  125. Returns the number of subdirectories in this directory.
  126. </description>
  127. </method>
  128. </methods>
  129. <constants>
  130. </constants>
  131. </class>