ClassDB.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ClassDB" inherits="Object" category="Core" version="3.1">
  3. <brief_description>
  4. Class information repository.
  5. </brief_description>
  6. <description>
  7. Provides access to metadata stored for every available class.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="can_instance" qualifiers="const">
  15. <return type="bool">
  16. </return>
  17. <argument index="0" name="class" type="String">
  18. </argument>
  19. <description>
  20. Returns true if you can instance objects from the specified 'class', false in other case.
  21. </description>
  22. </method>
  23. <method name="class_exists" qualifiers="const">
  24. <return type="bool">
  25. </return>
  26. <argument index="0" name="class" type="String">
  27. </argument>
  28. <description>
  29. Returns whether the specified 'class' is available or not.
  30. </description>
  31. </method>
  32. <method name="class_get_category" qualifiers="const">
  33. <return type="String">
  34. </return>
  35. <argument index="0" name="class" type="String">
  36. </argument>
  37. <description>
  38. Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required.
  39. </description>
  40. </method>
  41. <method name="class_get_integer_constant" qualifiers="const">
  42. <return type="int">
  43. </return>
  44. <argument index="0" name="class" type="String">
  45. </argument>
  46. <argument index="1" name="name" type="String">
  47. </argument>
  48. <description>
  49. Returns the value of the integer constant 'name' of 'class' or its ancestry. Always returns 0 when the constant could not be found.
  50. </description>
  51. </method>
  52. <method name="class_get_integer_constant_list" qualifiers="const">
  53. <return type="PoolStringArray">
  54. </return>
  55. <argument index="0" name="class" type="String">
  56. </argument>
  57. <argument index="1" name="no_inheritance" type="bool" default="false">
  58. </argument>
  59. <description>
  60. Returns an array with the names all the integer constants of 'class' or its ancestry.
  61. </description>
  62. </method>
  63. <method name="class_get_method_list" qualifiers="const">
  64. <return type="Array">
  65. </return>
  66. <argument index="0" name="class" type="String">
  67. </argument>
  68. <argument index="1" name="no_inheritance" type="bool" default="false">
  69. </argument>
  70. <description>
  71. Returns an array with all the methods of 'class' or its ancestry if 'no_inheritance' is false. Every element of the array is a [Dictionary] with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
  72. </description>
  73. </method>
  74. <method name="class_get_property" qualifiers="const">
  75. <return type="Variant">
  76. </return>
  77. <argument index="0" name="object" type="Object">
  78. </argument>
  79. <argument index="1" name="property" type="String">
  80. </argument>
  81. <description>
  82. Returns the value of 'property' of 'class' or its ancestry.
  83. </description>
  84. </method>
  85. <method name="class_get_property_list" qualifiers="const">
  86. <return type="Array">
  87. </return>
  88. <argument index="0" name="class" type="String">
  89. </argument>
  90. <argument index="1" name="no_inheritance" type="bool" default="false">
  91. </argument>
  92. <description>
  93. Returns an array with all the properties of 'class' or its ancestry if 'no_inheritance' is false.
  94. </description>
  95. </method>
  96. <method name="class_get_signal" qualifiers="const">
  97. <return type="Dictionary">
  98. </return>
  99. <argument index="0" name="class" type="String">
  100. </argument>
  101. <argument index="1" name="signal" type="String">
  102. </argument>
  103. <description>
  104. Returns the 'signal' data of 'class' or its ancestry. The returned value is a [Dictionary] with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
  105. </description>
  106. </method>
  107. <method name="class_get_signal_list" qualifiers="const">
  108. <return type="Array">
  109. </return>
  110. <argument index="0" name="class" type="String">
  111. </argument>
  112. <argument index="1" name="no_inheritance" type="bool" default="false">
  113. </argument>
  114. <description>
  115. Returns an array with all the signals of 'class' or its ancestry if 'no_inheritance' is false. Every element of the array is a [Dictionary] as described in [method class_get_signal].
  116. </description>
  117. </method>
  118. <method name="class_has_integer_constant" qualifiers="const">
  119. <return type="bool">
  120. </return>
  121. <argument index="0" name="class" type="String">
  122. </argument>
  123. <argument index="1" name="name" type="String">
  124. </argument>
  125. <description>
  126. Return whether 'class' or its ancestry has an integer constant called 'name' or not.
  127. </description>
  128. </method>
  129. <method name="class_has_method" qualifiers="const">
  130. <return type="bool">
  131. </return>
  132. <argument index="0" name="class" type="String">
  133. </argument>
  134. <argument index="1" name="method" type="String">
  135. </argument>
  136. <argument index="2" name="no_inheritance" type="bool" default="false">
  137. </argument>
  138. <description>
  139. Return whether 'class' (or its ancestry if 'no_inheritance' is false) has a method called 'method' or not.
  140. </description>
  141. </method>
  142. <method name="class_has_signal" qualifiers="const">
  143. <return type="bool">
  144. </return>
  145. <argument index="0" name="class" type="String">
  146. </argument>
  147. <argument index="1" name="signal" type="String">
  148. </argument>
  149. <description>
  150. Return whether 'class' or its ancestry has a signal called 'signal' or not.
  151. </description>
  152. </method>
  153. <method name="class_set_property" qualifiers="const">
  154. <return type="int" enum="Error">
  155. </return>
  156. <argument index="0" name="object" type="Object">
  157. </argument>
  158. <argument index="1" name="property" type="String">
  159. </argument>
  160. <argument index="2" name="value" type="Variant">
  161. </argument>
  162. <description>
  163. Sets 'property' value of 'class' to 'value'.
  164. </description>
  165. </method>
  166. <method name="get_class_list" qualifiers="const">
  167. <return type="PoolStringArray">
  168. </return>
  169. <description>
  170. Returns the names of all the classes available.
  171. </description>
  172. </method>
  173. <method name="get_inheriters_from_class" qualifiers="const">
  174. <return type="PoolStringArray">
  175. </return>
  176. <argument index="0" name="class" type="String">
  177. </argument>
  178. <description>
  179. Returns the names of all the classes that directly or indirectly inherit from 'class'.
  180. </description>
  181. </method>
  182. <method name="get_parent_class" qualifiers="const">
  183. <return type="String">
  184. </return>
  185. <argument index="0" name="class" type="String">
  186. </argument>
  187. <description>
  188. Returns the parent class of 'class'.
  189. </description>
  190. </method>
  191. <method name="instance" qualifiers="const">
  192. <return type="Variant">
  193. </return>
  194. <argument index="0" name="class" type="String">
  195. </argument>
  196. <description>
  197. Creates an instance of 'class'.
  198. </description>
  199. </method>
  200. <method name="is_class_enabled" qualifiers="const">
  201. <return type="bool">
  202. </return>
  203. <argument index="0" name="class" type="String">
  204. </argument>
  205. <description>
  206. Returns whether this class is enabled or not.
  207. </description>
  208. </method>
  209. <method name="is_parent_class" qualifiers="const">
  210. <return type="bool">
  211. </return>
  212. <argument index="0" name="class" type="String">
  213. </argument>
  214. <argument index="1" name="inherits" type="String">
  215. </argument>
  216. <description>
  217. Returns whether 'inherits' is an ancestor of 'class' or not.
  218. </description>
  219. </method>
  220. </methods>
  221. <constants>
  222. </constants>
  223. </class>