class_rid.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. Operators
  25. ---------
  26. +-------------------------+-----------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`operator !=<class_RID_operator_neq_bool>` **(** **)** |
  28. +-------------------------+-----------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`operator !=<class_RID_operator_neq_bool>` **(** :ref:`RID<class_RID>` right **)** |
  30. +-------------------------+-----------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`operator <<class_RID_operator_lt_bool>` **(** :ref:`RID<class_RID>` right **)** |
  32. +-------------------------+-----------------------------------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`operator <=<class_RID_operator_lte_bool>` **(** :ref:`RID<class_RID>` right **)** |
  34. +-------------------------+-----------------------------------------------------------------------------------------+
  35. | :ref:`bool<class_bool>` | :ref:`operator ==<class_RID_operator_eq_bool>` **(** **)** |
  36. +-------------------------+-----------------------------------------------------------------------------------------+
  37. | :ref:`bool<class_bool>` | :ref:`operator ==<class_RID_operator_eq_bool>` **(** :ref:`RID<class_RID>` right **)** |
  38. +-------------------------+-----------------------------------------------------------------------------------------+
  39. | :ref:`bool<class_bool>` | :ref:`operator ><class_RID_operator_gt_bool>` **(** :ref:`RID<class_RID>` right **)** |
  40. +-------------------------+-----------------------------------------------------------------------------------------+
  41. | :ref:`bool<class_bool>` | :ref:`operator >=<class_RID_operator_gte_bool>` **(** :ref:`RID<class_RID>` right **)** |
  42. +-------------------------+-----------------------------------------------------------------------------------------+
  43. Constructor Descriptions
  44. ------------------------
  45. .. _class_RID_constructor_RID:
  46. - :ref:`RID<class_RID>` **RID** **(** **)**
  47. Constructs an empty ``RID`` with the invalid ID ``0``.
  48. ----
  49. - :ref:`RID<class_RID>` **RID** **(** :ref:`RID<class_RID>` from **)**
  50. Constructs a ``RID`` as a copy of the given ``RID``.
  51. Method Descriptions
  52. -------------------
  53. .. _class_RID_method_get_id:
  54. - :ref:`int<class_int>` **get_id** **(** **)** |const|
  55. Returns the ID of the referenced resource.
  56. Operator Descriptions
  57. ---------------------
  58. .. _class_RID_operator_neq_bool:
  59. - :ref:`bool<class_bool>` **operator !=** **(** **)**
  60. ----
  61. - :ref:`bool<class_bool>` **operator !=** **(** :ref:`RID<class_RID>` right **)**
  62. ----
  63. .. _class_RID_operator_lt_bool:
  64. - :ref:`bool<class_bool>` **operator <** **(** :ref:`RID<class_RID>` right **)**
  65. ----
  66. .. _class_RID_operator_lte_bool:
  67. - :ref:`bool<class_bool>` **operator <=** **(** :ref:`RID<class_RID>` right **)**
  68. ----
  69. .. _class_RID_operator_eq_bool:
  70. - :ref:`bool<class_bool>` **operator ==** **(** **)**
  71. ----
  72. - :ref:`bool<class_bool>` **operator ==** **(** :ref:`RID<class_RID>` right **)**
  73. ----
  74. .. _class_RID_operator_gt_bool:
  75. - :ref:`bool<class_bool>` **operator >** **(** :ref:`RID<class_RID>` right **)**
  76. ----
  77. .. _class_RID_operator_gte_bool:
  78. - :ref:`bool<class_bool>` **operator >=** **(** :ref:`RID<class_RID>` right **)**
  79. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  80. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  81. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  82. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  83. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  84. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`