RID.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RID" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Handle for a [Resource]'s unique ID.
  5. </brief_description>
  6. <description>
  7. 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 [RenderingServer].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <constructors>
  12. <constructor name="RID">
  13. <return type="RID" />
  14. <description>
  15. Constructs an empty [RID] with the invalid ID [code]0[/code].
  16. </description>
  17. </constructor>
  18. <constructor name="RID">
  19. <return type="RID" />
  20. <param index="0" name="from" type="RID" />
  21. <description>
  22. Constructs a [RID] as a copy of the given [RID].
  23. </description>
  24. </constructor>
  25. </constructors>
  26. <methods>
  27. <method name="get_id" qualifiers="const">
  28. <return type="int" />
  29. <description>
  30. Returns the ID of the referenced resource.
  31. </description>
  32. </method>
  33. <method name="is_valid" qualifiers="const">
  34. <return type="bool" />
  35. <description>
  36. Returns [code]true[/code] if [RID] is valid.
  37. </description>
  38. </method>
  39. </methods>
  40. <operators>
  41. <operator name="operator !=">
  42. <return type="bool" />
  43. <param index="0" name="right" type="RID" />
  44. <description>
  45. </description>
  46. </operator>
  47. <operator name="operator &lt;">
  48. <return type="bool" />
  49. <param index="0" name="right" type="RID" />
  50. <description>
  51. </description>
  52. </operator>
  53. <operator name="operator &lt;=">
  54. <return type="bool" />
  55. <param index="0" name="right" type="RID" />
  56. <description>
  57. </description>
  58. </operator>
  59. <operator name="operator ==">
  60. <return type="bool" />
  61. <param index="0" name="right" type="RID" />
  62. <description>
  63. </description>
  64. </operator>
  65. <operator name="operator &gt;">
  66. <return type="bool" />
  67. <param index="0" name="right" type="RID" />
  68. <description>
  69. </description>
  70. </operator>
  71. <operator name="operator &gt;=">
  72. <return type="bool" />
  73. <param index="0" name="right" type="RID" />
  74. <description>
  75. </description>
  76. </operator>
  77. </operators>
  78. </class>