class_rid.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 RID.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RID:
  6. RID
  7. ===
  8. Handle for a :ref:`Resource<class_Resource>`'s unique ID.
  9. Description
  10. -----------
  11. The RID type is used to access the unique integer ID of a resource. They are opaque, which means they do not grant access to the associated resource by themselves. They are used by and with the low-level Server classes such as :ref:`RenderingServer<class_RenderingServer>`.
  12. Constructors
  13. ------------
  14. +-----------------------+------------------------------------------------------------------------------+
  15. | :ref:`RID<class_RID>` | :ref:`RID<class_RID_constructor_RID>` **(** **)** |
  16. +-----------------------+------------------------------------------------------------------------------+
  17. | :ref:`RID<class_RID>` | :ref:`RID<class_RID_constructor_RID>` **(** :ref:`RID<class_RID>` from **)** |
  18. +-----------------------+------------------------------------------------------------------------------+
  19. Methods
  20. -------
  21. +-------------------------+----------------------------------------------------------------+
  22. | :ref:`int<class_int>` | :ref:`get_id<class_RID_method_get_id>` **(** **)** |const| |
  23. +-------------------------+----------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_valid<class_RID_method_is_valid>` **(** **)** |const| |
  25. +-------------------------+----------------------------------------------------------------+
  26. Operators
  27. ---------
  28. +-------------------------+-----------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`operator !=<class_RID_operator_neq_bool>` **(** **)** |
  30. +-------------------------+-----------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`operator !=<class_RID_operator_neq_bool>` **(** :ref:`RID<class_RID>` right **)** |
  32. +-------------------------+-----------------------------------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`operator <<class_RID_operator_lt_bool>` **(** :ref:`RID<class_RID>` right **)** |
  34. +-------------------------+-----------------------------------------------------------------------------------------+
  35. | :ref:`bool<class_bool>` | :ref:`operator <=<class_RID_operator_lte_bool>` **(** :ref:`RID<class_RID>` right **)** |
  36. +-------------------------+-----------------------------------------------------------------------------------------+
  37. | :ref:`bool<class_bool>` | :ref:`operator ==<class_RID_operator_eq_bool>` **(** **)** |
  38. +-------------------------+-----------------------------------------------------------------------------------------+
  39. | :ref:`bool<class_bool>` | :ref:`operator ==<class_RID_operator_eq_bool>` **(** :ref:`RID<class_RID>` right **)** |
  40. +-------------------------+-----------------------------------------------------------------------------------------+
  41. | :ref:`bool<class_bool>` | :ref:`operator ><class_RID_operator_gt_bool>` **(** :ref:`RID<class_RID>` right **)** |
  42. +-------------------------+-----------------------------------------------------------------------------------------+
  43. | :ref:`bool<class_bool>` | :ref:`operator >=<class_RID_operator_gte_bool>` **(** :ref:`RID<class_RID>` right **)** |
  44. +-------------------------+-----------------------------------------------------------------------------------------+
  45. Constructor Descriptions
  46. ------------------------
  47. .. _class_RID_constructor_RID:
  48. - :ref:`RID<class_RID>` **RID** **(** **)**
  49. Constructs an empty ``RID`` with the invalid ID ``0``.
  50. ----
  51. - :ref:`RID<class_RID>` **RID** **(** :ref:`RID<class_RID>` from **)**
  52. Constructs a ``RID`` as a copy of the given ``RID``.
  53. Method Descriptions
  54. -------------------
  55. .. _class_RID_method_get_id:
  56. - :ref:`int<class_int>` **get_id** **(** **)** |const|
  57. Returns the ID of the referenced resource.
  58. ----
  59. .. _class_RID_method_is_valid:
  60. - :ref:`bool<class_bool>` **is_valid** **(** **)** |const|
  61. Returns ``true`` if ``RID`` is valid.
  62. Operator Descriptions
  63. ---------------------
  64. .. _class_RID_operator_neq_bool:
  65. - :ref:`bool<class_bool>` **operator !=** **(** **)**
  66. ----
  67. - :ref:`bool<class_bool>` **operator !=** **(** :ref:`RID<class_RID>` right **)**
  68. ----
  69. .. _class_RID_operator_lt_bool:
  70. - :ref:`bool<class_bool>` **operator <** **(** :ref:`RID<class_RID>` right **)**
  71. ----
  72. .. _class_RID_operator_lte_bool:
  73. - :ref:`bool<class_bool>` **operator <=** **(** :ref:`RID<class_RID>` right **)**
  74. ----
  75. .. _class_RID_operator_eq_bool:
  76. - :ref:`bool<class_bool>` **operator ==** **(** **)**
  77. ----
  78. - :ref:`bool<class_bool>` **operator ==** **(** :ref:`RID<class_RID>` right **)**
  79. ----
  80. .. _class_RID_operator_gt_bool:
  81. - :ref:`bool<class_bool>` **operator >** **(** :ref:`RID<class_RID>` right **)**
  82. ----
  83. .. _class_RID_operator_gte_bool:
  84. - :ref:`bool<class_bool>` **operator >=** **(** :ref:`RID<class_RID>` right **)**
  85. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  86. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  87. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  88. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  89. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  90. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`