class_navigationpathqueryresult2d.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/NavigationPathQueryResult2D.xml.
  6. .. _class_NavigationPathQueryResult2D:
  7. NavigationPathQueryResult2D
  8. ===========================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Result from a :ref:`NavigationPathQueryParameters2D<class_NavigationPathQueryParameters2D>` navigation path query.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class contains the result of a navigation path query from :ref:`NavigationServer2D.query_path<class_NavigationServer2D_method_query_path>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  21. | :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`path<class_NavigationPathQueryResult2D_property_path>` | ``PackedVector2Array()`` |
  22. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  23. | :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`path_owner_ids<class_NavigationPathQueryResult2D_property_path_owner_ids>` | ``PackedInt64Array()`` |
  24. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  25. | :ref:`RID[]<class_RID>` | :ref:`path_rids<class_NavigationPathQueryResult2D_property_path_rids>` | ``[]`` |
  26. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  27. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`path_types<class_NavigationPathQueryResult2D_property_path_types>` | ``PackedInt32Array()`` |
  28. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  29. .. rst-class:: classref-reftable-group
  30. Methods
  31. -------
  32. .. table::
  33. :widths: auto
  34. +------+--------------------------------------------------------------------------+
  35. | void | :ref:`reset<class_NavigationPathQueryResult2D_method_reset>` **(** **)** |
  36. +------+--------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Enumerations
  41. ------------
  42. .. _enum_NavigationPathQueryResult2D_PathSegmentType:
  43. .. rst-class:: classref-enumeration
  44. enum **PathSegmentType**:
  45. .. _class_NavigationPathQueryResult2D_constant_PATH_SEGMENT_TYPE_REGION:
  46. .. rst-class:: classref-enumeration-constant
  47. :ref:`PathSegmentType<enum_NavigationPathQueryResult2D_PathSegmentType>` **PATH_SEGMENT_TYPE_REGION** = ``0``
  48. This segment of the path goes through a region.
  49. .. _class_NavigationPathQueryResult2D_constant_PATH_SEGMENT_TYPE_LINK:
  50. .. rst-class:: classref-enumeration-constant
  51. :ref:`PathSegmentType<enum_NavigationPathQueryResult2D_PathSegmentType>` **PATH_SEGMENT_TYPE_LINK** = ``1``
  52. This segment of the path goes through a link.
  53. .. rst-class:: classref-section-separator
  54. ----
  55. .. rst-class:: classref-descriptions-group
  56. Property Descriptions
  57. ---------------------
  58. .. _class_NavigationPathQueryResult2D_property_path:
  59. .. rst-class:: classref-property
  60. :ref:`PackedVector2Array<class_PackedVector2Array>` **path** = ``PackedVector2Array()``
  61. .. rst-class:: classref-property-setget
  62. - void **set_path** **(** :ref:`PackedVector2Array<class_PackedVector2Array>` value **)**
  63. - :ref:`PackedVector2Array<class_PackedVector2Array>` **get_path** **(** **)**
  64. The resulting path array from the navigation query. All path array positions are in global coordinates. Without customized query parameters this is the same path as returned by :ref:`NavigationServer2D.map_get_path<class_NavigationServer2D_method_map_get_path>`.
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_NavigationPathQueryResult2D_property_path_owner_ids:
  68. .. rst-class:: classref-property
  69. :ref:`PackedInt64Array<class_PackedInt64Array>` **path_owner_ids** = ``PackedInt64Array()``
  70. .. rst-class:: classref-property-setget
  71. - void **set_path_owner_ids** **(** :ref:`PackedInt64Array<class_PackedInt64Array>` value **)**
  72. - :ref:`PackedInt64Array<class_PackedInt64Array>` **get_path_owner_ids** **(** **)**
  73. The ``ObjectID``\ s of the :ref:`Object<class_Object>`\ s which manage the regions and links each point of the path goes through.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_NavigationPathQueryResult2D_property_path_rids:
  77. .. rst-class:: classref-property
  78. :ref:`RID[]<class_RID>` **path_rids** = ``[]``
  79. .. rst-class:: classref-property-setget
  80. - void **set_path_rids** **(** :ref:`RID[]<class_RID>` value **)**
  81. - :ref:`RID[]<class_RID>` **get_path_rids** **(** **)**
  82. The :ref:`RID<class_RID>`\ s of the regions and links that each point of the path goes through.
  83. .. rst-class:: classref-item-separator
  84. ----
  85. .. _class_NavigationPathQueryResult2D_property_path_types:
  86. .. rst-class:: classref-property
  87. :ref:`PackedInt32Array<class_PackedInt32Array>` **path_types** = ``PackedInt32Array()``
  88. .. rst-class:: classref-property-setget
  89. - void **set_path_types** **(** :ref:`PackedInt32Array<class_PackedInt32Array>` value **)**
  90. - :ref:`PackedInt32Array<class_PackedInt32Array>` **get_path_types** **(** **)**
  91. The type of navigation primitive (region or link) that each point of the path goes through.
  92. .. rst-class:: classref-section-separator
  93. ----
  94. .. rst-class:: classref-descriptions-group
  95. Method Descriptions
  96. -------------------
  97. .. _class_NavigationPathQueryResult2D_method_reset:
  98. .. rst-class:: classref-method
  99. void **reset** **(** **)**
  100. Reset the result object to its initial state. This is useful to reuse the object across multiple queries.
  101. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  102. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  103. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  104. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  105. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  106. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`