MeshLibrary.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="MeshLibrary" inherits="Resource" category="Core" version="3.1.2">
  3. <brief_description>
  4. Library of meshes.
  5. </brief_description>
  6. <description>
  7. Library of meshes. Contains a list of [Mesh] resources, each with name and ID. Useful for GridMap or painting Terrain.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="clear">
  13. <return type="void">
  14. </return>
  15. <description>
  16. Clear the library.
  17. </description>
  18. </method>
  19. <method name="create_item">
  20. <return type="void">
  21. </return>
  22. <argument index="0" name="id" type="int">
  23. </argument>
  24. <description>
  25. Create a new item in the library, supplied an id.
  26. </description>
  27. </method>
  28. <method name="find_item_by_name" qualifiers="const">
  29. <return type="int">
  30. </return>
  31. <argument index="0" name="name" type="String">
  32. </argument>
  33. <description>
  34. </description>
  35. </method>
  36. <method name="get_item_list" qualifiers="const">
  37. <return type="PoolIntArray">
  38. </return>
  39. <description>
  40. Returns the list of items.
  41. </description>
  42. </method>
  43. <method name="get_item_mesh" qualifiers="const">
  44. <return type="Mesh">
  45. </return>
  46. <argument index="0" name="id" type="int">
  47. </argument>
  48. <description>
  49. Returns the mesh of the item.
  50. </description>
  51. </method>
  52. <method name="get_item_name" qualifiers="const">
  53. <return type="String">
  54. </return>
  55. <argument index="0" name="id" type="int">
  56. </argument>
  57. <description>
  58. Returns the name of the item.
  59. </description>
  60. </method>
  61. <method name="get_item_navmesh" qualifiers="const">
  62. <return type="NavigationMesh">
  63. </return>
  64. <argument index="0" name="id" type="int">
  65. </argument>
  66. <description>
  67. </description>
  68. </method>
  69. <method name="get_item_preview" qualifiers="const">
  70. <return type="Texture">
  71. </return>
  72. <argument index="0" name="id" type="int">
  73. </argument>
  74. <description>
  75. </description>
  76. </method>
  77. <method name="get_item_shapes" qualifiers="const">
  78. <return type="Array">
  79. </return>
  80. <argument index="0" name="id" type="int">
  81. </argument>
  82. <description>
  83. </description>
  84. </method>
  85. <method name="get_last_unused_item_id" qualifiers="const">
  86. <return type="int">
  87. </return>
  88. <description>
  89. Get an unused id for a new item.
  90. </description>
  91. </method>
  92. <method name="remove_item">
  93. <return type="void">
  94. </return>
  95. <argument index="0" name="id" type="int">
  96. </argument>
  97. <description>
  98. Remove the item.
  99. </description>
  100. </method>
  101. <method name="set_item_mesh">
  102. <return type="void">
  103. </return>
  104. <argument index="0" name="id" type="int">
  105. </argument>
  106. <argument index="1" name="mesh" type="Mesh">
  107. </argument>
  108. <description>
  109. Set the mesh of the item.
  110. </description>
  111. </method>
  112. <method name="set_item_name">
  113. <return type="void">
  114. </return>
  115. <argument index="0" name="id" type="int">
  116. </argument>
  117. <argument index="1" name="name" type="String">
  118. </argument>
  119. <description>
  120. Set the name of the item.
  121. </description>
  122. </method>
  123. <method name="set_item_navmesh">
  124. <return type="void">
  125. </return>
  126. <argument index="0" name="id" type="int">
  127. </argument>
  128. <argument index="1" name="navmesh" type="NavigationMesh">
  129. </argument>
  130. <description>
  131. </description>
  132. </method>
  133. <method name="set_item_preview">
  134. <return type="void">
  135. </return>
  136. <argument index="0" name="id" type="int">
  137. </argument>
  138. <argument index="1" name="texture" type="Texture">
  139. </argument>
  140. <description>
  141. </description>
  142. </method>
  143. <method name="set_item_shapes">
  144. <return type="void">
  145. </return>
  146. <argument index="0" name="id" type="int">
  147. </argument>
  148. <argument index="1" name="shapes" type="Array">
  149. </argument>
  150. <description>
  151. </description>
  152. </method>
  153. </methods>
  154. <constants>
  155. </constants>
  156. </class>