class_tiledata.rst 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the TileData.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_TileData:
  6. TileData
  7. ========
  8. **Inherits:** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  12. | :ref:`bool<class_bool>` | :ref:`flip_h<class_TileData_property_flip_h>` | ``false`` |
  13. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  14. | :ref:`bool<class_bool>` | :ref:`flip_v<class_TileData_property_flip_v>` | ``false`` |
  15. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  16. | :ref:`ShaderMaterial<class_ShaderMaterial>` | :ref:`material<class_TileData_property_material>` | |
  17. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  18. | :ref:`Color<class_Color>` | :ref:`modulate<class_TileData_property_modulate>` | ``Color(1, 1, 1, 1)`` |
  19. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  20. | :ref:`float<class_float>` | :ref:`probability<class_TileData_property_probability>` | ``1.0`` |
  21. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  22. | :ref:`int<class_int>` | :ref:`terrain_set<class_TileData_property_terrain_set>` | ``-1`` |
  23. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  24. | :ref:`Vector2i<class_Vector2i>` | :ref:`texture_offset<class_TileData_property_texture_offset>` | ``Vector2i(0, 0)`` |
  25. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  26. | :ref:`bool<class_bool>` | :ref:`transpose<class_TileData_property_transpose>` | ``false`` |
  27. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  28. | :ref:`int<class_int>` | :ref:`y_sort_origin<class_TileData_property_y_sort_origin>` | ``0`` |
  29. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  30. | :ref:`int<class_int>` | :ref:`z_index<class_TileData_property_z_index>` | ``0`` |
  31. +---------------------------------------------+---------------------------------------------------------------+-----------------------+
  32. Methods
  33. -------
  34. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`add_collision_polygon<class_TileData_method_add_collision_polygon>` **(** :ref:`int<class_int>` layer_id **)** |
  36. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`float<class_float>` | :ref:`get_collision_polygon_one_way_margin<class_TileData_method_get_collision_polygon_one_way_margin>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |const| |
  38. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`get_collision_polygon_points<class_TileData_method_get_collision_polygon_points>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |const| |
  40. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`int<class_int>` | :ref:`get_collision_polygons_count<class_TileData_method_get_collision_polygons_count>` **(** :ref:`int<class_int>` layer_id **)** |const| |
  42. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`float<class_float>` | :ref:`get_constant_angular_velocity<class_TileData_method_get_constant_angular_velocity>` **(** :ref:`int<class_int>` layer_id **)** |const| |
  44. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`Vector2<class_Vector2>` | :ref:`get_constant_linear_velocity<class_TileData_method_get_constant_linear_velocity>` **(** :ref:`int<class_int>` layer_id **)** |const| |
  46. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`Variant<class_Variant>` | :ref:`get_custom_data<class_TileData_method_get_custom_data>` **(** :ref:`String<class_String>` layer_name **)** |const| |
  48. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`Variant<class_Variant>` | :ref:`get_custom_data_by_layer_id<class_TileData_method_get_custom_data_by_layer_id>` **(** :ref:`int<class_int>` layer_id **)** |const| |
  50. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`NavigationPolygon<class_NavigationPolygon>` | :ref:`get_navigation_polygon<class_TileData_method_get_navigation_polygon>` **(** :ref:`int<class_int>` layer_id **)** |const| |
  52. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` | :ref:`get_occluder<class_TileData_method_get_occluder>` **(** :ref:`int<class_int>` layer_id **)** |const| |
  54. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`get_peering_bit_terrain<class_TileData_method_get_peering_bit_terrain>` **(** :ref:`CellNeighbor<enum_TileSet_CellNeighbor>` peering_bit **)** |const| |
  56. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`bool<class_bool>` | :ref:`is_collision_polygon_one_way<class_TileData_method_is_collision_polygon_one_way>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |const| |
  58. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | void | :ref:`remove_collision_polygon<class_TileData_method_remove_collision_polygon>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |
  60. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`set_collision_polygon_one_way<class_TileData_method_set_collision_polygon_one_way>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index, :ref:`bool<class_bool>` one_way **)** |
  62. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_collision_polygon_one_way_margin<class_TileData_method_set_collision_polygon_one_way_margin>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index, :ref:`float<class_float>` one_way_margin **)** |
  64. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`set_collision_polygon_points<class_TileData_method_set_collision_polygon_points>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index, :ref:`PackedVector2Array<class_PackedVector2Array>` polygon **)** |
  66. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`set_collision_polygons_count<class_TileData_method_set_collision_polygons_count>` **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygons_count **)** |
  68. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`set_constant_angular_velocity<class_TileData_method_set_constant_angular_velocity>` **(** :ref:`int<class_int>` layer_id, :ref:`float<class_float>` velocity **)** |
  70. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`set_constant_linear_velocity<class_TileData_method_set_constant_linear_velocity>` **(** :ref:`int<class_int>` layer_id, :ref:`Vector2<class_Vector2>` velocity **)** |
  72. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_custom_data<class_TileData_method_set_custom_data>` **(** :ref:`String<class_String>` layer_name, :ref:`Variant<class_Variant>` value **)** |
  74. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`set_custom_data_by_layer_id<class_TileData_method_set_custom_data_by_layer_id>` **(** :ref:`int<class_int>` layer_id, :ref:`Variant<class_Variant>` value **)** |
  76. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`set_navigation_polygon<class_TileData_method_set_navigation_polygon>` **(** :ref:`int<class_int>` layer_id, :ref:`NavigationPolygon<class_NavigationPolygon>` navigation_polygon **)** |
  78. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`set_occluder<class_TileData_method_set_occluder>` **(** :ref:`int<class_int>` layer_id, :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` occluder_polygon **)** |
  80. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`set_peering_bit_terrain<class_TileData_method_set_peering_bit_terrain>` **(** :ref:`CellNeighbor<enum_TileSet_CellNeighbor>` peering_bit, :ref:`int<class_int>` terrain **)** |
  82. +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. Signals
  84. -------
  85. .. _class_TileData_signal_changed:
  86. - **changed** **(** **)**
  87. Property Descriptions
  88. ---------------------
  89. .. _class_TileData_property_flip_h:
  90. - :ref:`bool<class_bool>` **flip_h**
  91. +-----------+-------------------+
  92. | *Default* | ``false`` |
  93. +-----------+-------------------+
  94. | *Setter* | set_flip_h(value) |
  95. +-----------+-------------------+
  96. | *Getter* | get_flip_h() |
  97. +-----------+-------------------+
  98. ----
  99. .. _class_TileData_property_flip_v:
  100. - :ref:`bool<class_bool>` **flip_v**
  101. +-----------+-------------------+
  102. | *Default* | ``false`` |
  103. +-----------+-------------------+
  104. | *Setter* | set_flip_v(value) |
  105. +-----------+-------------------+
  106. | *Getter* | get_flip_v() |
  107. +-----------+-------------------+
  108. ----
  109. .. _class_TileData_property_material:
  110. - :ref:`ShaderMaterial<class_ShaderMaterial>` **material**
  111. +----------+---------------------+
  112. | *Setter* | set_material(value) |
  113. +----------+---------------------+
  114. | *Getter* | get_material() |
  115. +----------+---------------------+
  116. ----
  117. .. _class_TileData_property_modulate:
  118. - :ref:`Color<class_Color>` **modulate**
  119. +-----------+-----------------------+
  120. | *Default* | ``Color(1, 1, 1, 1)`` |
  121. +-----------+-----------------------+
  122. | *Setter* | set_modulate(value) |
  123. +-----------+-----------------------+
  124. | *Getter* | get_modulate() |
  125. +-----------+-----------------------+
  126. ----
  127. .. _class_TileData_property_probability:
  128. - :ref:`float<class_float>` **probability**
  129. +-----------+------------------------+
  130. | *Default* | ``1.0`` |
  131. +-----------+------------------------+
  132. | *Setter* | set_probability(value) |
  133. +-----------+------------------------+
  134. | *Getter* | get_probability() |
  135. +-----------+------------------------+
  136. ----
  137. .. _class_TileData_property_terrain_set:
  138. - :ref:`int<class_int>` **terrain_set**
  139. +-----------+------------------------+
  140. | *Default* | ``-1`` |
  141. +-----------+------------------------+
  142. | *Setter* | set_terrain_set(value) |
  143. +-----------+------------------------+
  144. | *Getter* | get_terrain_set() |
  145. +-----------+------------------------+
  146. ----
  147. .. _class_TileData_property_texture_offset:
  148. - :ref:`Vector2i<class_Vector2i>` **texture_offset**
  149. +-----------+---------------------------+
  150. | *Default* | ``Vector2i(0, 0)`` |
  151. +-----------+---------------------------+
  152. | *Setter* | set_texture_offset(value) |
  153. +-----------+---------------------------+
  154. | *Getter* | get_texture_offset() |
  155. +-----------+---------------------------+
  156. ----
  157. .. _class_TileData_property_transpose:
  158. - :ref:`bool<class_bool>` **transpose**
  159. +-----------+----------------------+
  160. | *Default* | ``false`` |
  161. +-----------+----------------------+
  162. | *Setter* | set_transpose(value) |
  163. +-----------+----------------------+
  164. | *Getter* | get_transpose() |
  165. +-----------+----------------------+
  166. ----
  167. .. _class_TileData_property_y_sort_origin:
  168. - :ref:`int<class_int>` **y_sort_origin**
  169. +-----------+--------------------------+
  170. | *Default* | ``0`` |
  171. +-----------+--------------------------+
  172. | *Setter* | set_y_sort_origin(value) |
  173. +-----------+--------------------------+
  174. | *Getter* | get_y_sort_origin() |
  175. +-----------+--------------------------+
  176. ----
  177. .. _class_TileData_property_z_index:
  178. - :ref:`int<class_int>` **z_index**
  179. +-----------+--------------------+
  180. | *Default* | ``0`` |
  181. +-----------+--------------------+
  182. | *Setter* | set_z_index(value) |
  183. +-----------+--------------------+
  184. | *Getter* | get_z_index() |
  185. +-----------+--------------------+
  186. Method Descriptions
  187. -------------------
  188. .. _class_TileData_method_add_collision_polygon:
  189. - void **add_collision_polygon** **(** :ref:`int<class_int>` layer_id **)**
  190. Adds a collision polygon to the tile on the given TileSet physics layer.
  191. ----
  192. .. _class_TileData_method_get_collision_polygon_one_way_margin:
  193. - :ref:`float<class_float>` **get_collision_polygon_one_way_margin** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |const|
  194. Returns the one-way margin (for one-way platforms) of the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  195. ----
  196. .. _class_TileData_method_get_collision_polygon_points:
  197. - :ref:`PackedVector2Array<class_PackedVector2Array>` **get_collision_polygon_points** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |const|
  198. Returns the points of the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  199. ----
  200. .. _class_TileData_method_get_collision_polygons_count:
  201. - :ref:`int<class_int>` **get_collision_polygons_count** **(** :ref:`int<class_int>` layer_id **)** |const|
  202. Returns how many polygons the tile has for TileSet physics layer with index ``layer_id``.
  203. ----
  204. .. _class_TileData_method_get_constant_angular_velocity:
  205. - :ref:`float<class_float>` **get_constant_angular_velocity** **(** :ref:`int<class_int>` layer_id **)** |const|
  206. Returns the constant angular velocity applied to objects colliding with this tile.
  207. ----
  208. .. _class_TileData_method_get_constant_linear_velocity:
  209. - :ref:`Vector2<class_Vector2>` **get_constant_linear_velocity** **(** :ref:`int<class_int>` layer_id **)** |const|
  210. Returns the constant linear velocity applied to objects colliding with this tile.
  211. ----
  212. .. _class_TileData_method_get_custom_data:
  213. - :ref:`Variant<class_Variant>` **get_custom_data** **(** :ref:`String<class_String>` layer_name **)** |const|
  214. Returns the custom data value for custom data layer named ``layer_name``.
  215. ----
  216. .. _class_TileData_method_get_custom_data_by_layer_id:
  217. - :ref:`Variant<class_Variant>` **get_custom_data_by_layer_id** **(** :ref:`int<class_int>` layer_id **)** |const|
  218. Returns the custom data value for custom data layer with index ``layer_id``.
  219. ----
  220. .. _class_TileData_method_get_navigation_polygon:
  221. - :ref:`NavigationPolygon<class_NavigationPolygon>` **get_navigation_polygon** **(** :ref:`int<class_int>` layer_id **)** |const|
  222. Returns the navigation polygon of the tile for the TileSet navigation layer with index ``layer_id``.
  223. ----
  224. .. _class_TileData_method_get_occluder:
  225. - :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` **get_occluder** **(** :ref:`int<class_int>` layer_id **)** |const|
  226. Returns the occluder polygon of the tile for the TileSet occlusion layer with index ``layer_id``.
  227. ----
  228. .. _class_TileData_method_get_peering_bit_terrain:
  229. - :ref:`int<class_int>` **get_peering_bit_terrain** **(** :ref:`CellNeighbor<enum_TileSet_CellNeighbor>` peering_bit **)** |const|
  230. Returns the tile's terrain bit for the given ``peering_bit`` direction.
  231. ----
  232. .. _class_TileData_method_is_collision_polygon_one_way:
  233. - :ref:`bool<class_bool>` **is_collision_polygon_one_way** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)** |const|
  234. Returns whether one-way collisions are enabled for the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  235. ----
  236. .. _class_TileData_method_remove_collision_polygon:
  237. - void **remove_collision_polygon** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index **)**
  238. Removes the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  239. ----
  240. .. _class_TileData_method_set_collision_polygon_one_way:
  241. - void **set_collision_polygon_one_way** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index, :ref:`bool<class_bool>` one_way **)**
  242. Enables/disables one-way collisions on the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  243. ----
  244. .. _class_TileData_method_set_collision_polygon_one_way_margin:
  245. - void **set_collision_polygon_one_way_margin** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index, :ref:`float<class_float>` one_way_margin **)**
  246. Enables/disables one-way collisions on the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  247. ----
  248. .. _class_TileData_method_set_collision_polygon_points:
  249. - void **set_collision_polygon_points** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygon_index, :ref:`PackedVector2Array<class_PackedVector2Array>` polygon **)**
  250. Sets the points of the polygon at index ``polygon_index`` for TileSet physics layer with index ``layer_id``.
  251. ----
  252. .. _class_TileData_method_set_collision_polygons_count:
  253. - void **set_collision_polygons_count** **(** :ref:`int<class_int>` layer_id, :ref:`int<class_int>` polygons_count **)**
  254. Sets the polygons count for TileSet physics layer with index ``layer_id``.
  255. ----
  256. .. _class_TileData_method_set_constant_angular_velocity:
  257. - void **set_constant_angular_velocity** **(** :ref:`int<class_int>` layer_id, :ref:`float<class_float>` velocity **)**
  258. Sets the constant angular velocity. This does not rotate the tile. This angular velocity is applied to objects colliding with this tile.
  259. ----
  260. .. _class_TileData_method_set_constant_linear_velocity:
  261. - void **set_constant_linear_velocity** **(** :ref:`int<class_int>` layer_id, :ref:`Vector2<class_Vector2>` velocity **)**
  262. Sets the constant linear velocity. This does not move the tile. This linear velocity is applied to objects colliding with this tile. This is useful to create conveyor belts.
  263. ----
  264. .. _class_TileData_method_set_custom_data:
  265. - void **set_custom_data** **(** :ref:`String<class_String>` layer_name, :ref:`Variant<class_Variant>` value **)**
  266. Sets the tile's custom data value for the TileSet custom data layer with name ``layer_name``.
  267. ----
  268. .. _class_TileData_method_set_custom_data_by_layer_id:
  269. - void **set_custom_data_by_layer_id** **(** :ref:`int<class_int>` layer_id, :ref:`Variant<class_Variant>` value **)**
  270. Sets the tile's custom data value for the TileSet custom data layer with index ``layer_id``.
  271. ----
  272. .. _class_TileData_method_set_navigation_polygon:
  273. - void **set_navigation_polygon** **(** :ref:`int<class_int>` layer_id, :ref:`NavigationPolygon<class_NavigationPolygon>` navigation_polygon **)**
  274. Sets the navigation polygon for the TileSet navigation layer with index ``layer_id``.
  275. ----
  276. .. _class_TileData_method_set_occluder:
  277. - void **set_occluder** **(** :ref:`int<class_int>` layer_id, :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` occluder_polygon **)**
  278. Sets the occluder for the TileSet occlusion layer with index ``layer_id``.
  279. ----
  280. .. _class_TileData_method_set_peering_bit_terrain:
  281. - void **set_peering_bit_terrain** **(** :ref:`CellNeighbor<enum_TileSet_CellNeighbor>` peering_bit, :ref:`int<class_int>` terrain **)**
  282. Sets the tile's terrain bit for the given ``peering_bit`` direction.
  283. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  284. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  285. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  286. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  287. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  288. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`