MeshLibrary.xml 3.8 KB

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