class_gridmap.rst 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_GridMap:
  4. GridMap
  5. =======
  6. **Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  13. | :ref:`AABB<class_aabb>` | :ref:`area_get_bounds<class_GridMap_area_get_bounds>` **(** :ref:`int<class_int>` area **)** const |
  14. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`String<class_string>` | :ref:`area_get_name<class_GridMap_area_get_name>` **(** :ref:`int<class_int>` area **)** const |
  16. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Color<class_color>` | :ref:`area_get_portal_disable_color<class_GridMap_area_get_portal_disable_color>` **(** :ref:`int<class_int>` area **)** const |
  18. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`area_get_portal_disable_distance<class_GridMap_area_get_portal_disable_distance>` **(** :ref:`int<class_int>` area **)** const |
  20. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`area_is_exterior_portal<class_GridMap_area_is_exterior_portal>` **(** :ref:`int<class_int>` area **)** const |
  22. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`area_set_exterior_portal<class_GridMap_area_set_exterior_portal>` **(** :ref:`int<class_int>` area, :ref:`bool<class_bool>` enable **)** |
  24. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`area_set_name<class_GridMap_area_set_name>` **(** :ref:`int<class_int>` area, :ref:`String<class_string>` name **)** |
  26. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`area_set_portal_disable_color<class_GridMap_area_set_portal_disable_color>` **(** :ref:`int<class_int>` area, :ref:`Color<class_color>` color **)** |
  28. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`area_set_portal_disable_distance<class_GridMap_area_set_portal_disable_distance>` **(** :ref:`int<class_int>` area, :ref:`float<class_float>` distance **)** |
  30. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`bake_geometry<class_GridMap_bake_geometry>` **(** **)** |
  32. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`clear<class_GridMap_clear>` **(** **)** |
  34. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`int<class_int>` | :ref:`create_area<class_GridMap_create_area>` **(** :ref:`int<class_int>` id, :ref:`AABB<class_aabb>` area **)** |
  36. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`erase_area<class_GridMap_erase_area>` **(** :ref:`int<class_int>` area **)** |
  38. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`int<class_int>` | :ref:`get_cell_item<class_GridMap_get_cell_item>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z **)** const |
  40. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`int<class_int>` | :ref:`get_cell_item_orientation<class_GridMap_get_cell_item_orientation>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z **)** const |
  42. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`float<class_float>` | :ref:`get_cell_size<class_GridMap_get_cell_size>` **(** **)** const |
  44. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`bool<class_bool>` | :ref:`get_center_x<class_GridMap_get_center_x>` **(** **)** const |
  46. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`bool<class_bool>` | :ref:`get_center_y<class_GridMap_get_center_y>` **(** **)** const |
  48. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`bool<class_bool>` | :ref:`get_center_z<class_GridMap_get_center_z>` **(** **)** const |
  50. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`int<class_int>` | :ref:`get_octant_size<class_GridMap_get_octant_size>` **(** **)** const |
  52. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`MeshLibrary<class_meshlibrary>` | :ref:`get_theme<class_GridMap_get_theme>` **(** **)** const |
  54. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`get_unused_area_id<class_GridMap_get_unused_area_id>` **(** **)** const |
  56. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`bool<class_bool>` | :ref:`is_baking_enabled<class_GridMap_is_baking_enabled>` **(** **)** const |
  58. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`bool<class_bool>` | :ref:`is_using_baked_light<class_GridMap_is_using_baked_light>` **(** **)** const |
  60. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`resource_changed<class_GridMap_resource_changed>` **(** :ref:`Object<class_object>` resource **)** |
  62. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_bake<class_GridMap_set_bake>` **(** :ref:`bool<class_bool>` enable **)** |
  64. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`set_cell_item<class_GridMap_set_cell_item>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z, :ref:`int<class_int>` item, :ref:`int<class_int>` orientation=0 **)** |
  66. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`set_cell_size<class_GridMap_set_cell_size>` **(** :ref:`float<class_float>` size **)** |
  68. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`set_center_x<class_GridMap_set_center_x>` **(** :ref:`bool<class_bool>` enable **)** |
  70. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`set_center_y<class_GridMap_set_center_y>` **(** :ref:`bool<class_bool>` enable **)** |
  72. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_center_z<class_GridMap_set_center_z>` **(** :ref:`bool<class_bool>` enable **)** |
  74. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`set_clip<class_GridMap_set_clip>` **(** :ref:`bool<class_bool>` enabled, :ref:`bool<class_bool>` clipabove=true, :ref:`int<class_int>` floor=0, :ref:`int<class_int>` axis=0 **)** |
  76. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`set_octant_size<class_GridMap_set_octant_size>` **(** :ref:`int<class_int>` size **)** |
  78. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`set_theme<class_GridMap_set_theme>` **(** :ref:`MeshLibrary<class_meshlibrary>` theme **)** |
  80. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`set_use_baked_light<class_GridMap_set_use_baked_light>` **(** :ref:`bool<class_bool>` use **)** |
  82. +----------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. Numeric Constants
  84. -----------------
  85. - **INVALID_CELL_ITEM** = **-1**
  86. Member Function Description
  87. ---------------------------
  88. .. _class_GridMap_area_get_bounds:
  89. - :ref:`AABB<class_aabb>` **area_get_bounds** **(** :ref:`int<class_int>` area **)** const
  90. .. _class_GridMap_area_get_name:
  91. - :ref:`String<class_string>` **area_get_name** **(** :ref:`int<class_int>` area **)** const
  92. .. _class_GridMap_area_get_portal_disable_color:
  93. - :ref:`Color<class_color>` **area_get_portal_disable_color** **(** :ref:`int<class_int>` area **)** const
  94. .. _class_GridMap_area_get_portal_disable_distance:
  95. - :ref:`float<class_float>` **area_get_portal_disable_distance** **(** :ref:`int<class_int>` area **)** const
  96. .. _class_GridMap_area_is_exterior_portal:
  97. - :ref:`bool<class_bool>` **area_is_exterior_portal** **(** :ref:`int<class_int>` area **)** const
  98. .. _class_GridMap_area_set_exterior_portal:
  99. - void **area_set_exterior_portal** **(** :ref:`int<class_int>` area, :ref:`bool<class_bool>` enable **)**
  100. .. _class_GridMap_area_set_name:
  101. - void **area_set_name** **(** :ref:`int<class_int>` area, :ref:`String<class_string>` name **)**
  102. .. _class_GridMap_area_set_portal_disable_color:
  103. - void **area_set_portal_disable_color** **(** :ref:`int<class_int>` area, :ref:`Color<class_color>` color **)**
  104. .. _class_GridMap_area_set_portal_disable_distance:
  105. - void **area_set_portal_disable_distance** **(** :ref:`int<class_int>` area, :ref:`float<class_float>` distance **)**
  106. .. _class_GridMap_bake_geometry:
  107. - void **bake_geometry** **(** **)**
  108. .. _class_GridMap_clear:
  109. - void **clear** **(** **)**
  110. .. _class_GridMap_create_area:
  111. - :ref:`int<class_int>` **create_area** **(** :ref:`int<class_int>` id, :ref:`AABB<class_aabb>` area **)**
  112. .. _class_GridMap_erase_area:
  113. - void **erase_area** **(** :ref:`int<class_int>` area **)**
  114. .. _class_GridMap_get_cell_item:
  115. - :ref:`int<class_int>` **get_cell_item** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z **)** const
  116. .. _class_GridMap_get_cell_item_orientation:
  117. - :ref:`int<class_int>` **get_cell_item_orientation** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z **)** const
  118. .. _class_GridMap_get_cell_size:
  119. - :ref:`float<class_float>` **get_cell_size** **(** **)** const
  120. .. _class_GridMap_get_center_x:
  121. - :ref:`bool<class_bool>` **get_center_x** **(** **)** const
  122. .. _class_GridMap_get_center_y:
  123. - :ref:`bool<class_bool>` **get_center_y** **(** **)** const
  124. .. _class_GridMap_get_center_z:
  125. - :ref:`bool<class_bool>` **get_center_z** **(** **)** const
  126. .. _class_GridMap_get_octant_size:
  127. - :ref:`int<class_int>` **get_octant_size** **(** **)** const
  128. .. _class_GridMap_get_theme:
  129. - :ref:`MeshLibrary<class_meshlibrary>` **get_theme** **(** **)** const
  130. .. _class_GridMap_get_unused_area_id:
  131. - :ref:`int<class_int>` **get_unused_area_id** **(** **)** const
  132. .. _class_GridMap_is_baking_enabled:
  133. - :ref:`bool<class_bool>` **is_baking_enabled** **(** **)** const
  134. .. _class_GridMap_is_using_baked_light:
  135. - :ref:`bool<class_bool>` **is_using_baked_light** **(** **)** const
  136. .. _class_GridMap_resource_changed:
  137. - void **resource_changed** **(** :ref:`Object<class_object>` resource **)**
  138. .. _class_GridMap_set_bake:
  139. - void **set_bake** **(** :ref:`bool<class_bool>` enable **)**
  140. .. _class_GridMap_set_cell_item:
  141. - void **set_cell_item** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z, :ref:`int<class_int>` item, :ref:`int<class_int>` orientation=0 **)**
  142. .. _class_GridMap_set_cell_size:
  143. - void **set_cell_size** **(** :ref:`float<class_float>` size **)**
  144. .. _class_GridMap_set_center_x:
  145. - void **set_center_x** **(** :ref:`bool<class_bool>` enable **)**
  146. .. _class_GridMap_set_center_y:
  147. - void **set_center_y** **(** :ref:`bool<class_bool>` enable **)**
  148. .. _class_GridMap_set_center_z:
  149. - void **set_center_z** **(** :ref:`bool<class_bool>` enable **)**
  150. .. _class_GridMap_set_clip:
  151. - void **set_clip** **(** :ref:`bool<class_bool>` enabled, :ref:`bool<class_bool>` clipabove=true, :ref:`int<class_int>` floor=0, :ref:`int<class_int>` axis=0 **)**
  152. .. _class_GridMap_set_octant_size:
  153. - void **set_octant_size** **(** :ref:`int<class_int>` size **)**
  154. .. _class_GridMap_set_theme:
  155. - void **set_theme** **(** :ref:`MeshLibrary<class_meshlibrary>` theme **)**
  156. .. _class_GridMap_set_use_baked_light:
  157. - void **set_use_baked_light** **(** :ref:`bool<class_bool>` use **)**