Class RID

RID metatype, wrapper for godot_rid.

Construct using the idiom RID(from), which calls __new.

Methods

RID:get_id () Returns the ID of the referenced resource.

Metamethods

RID:__concat (a, b) Concatenates values.
RID:__eq (a, b) Equality comparison (a == b).
RID:__lt (a, b) Less than comparison (a < b).
RID:__new ([from]) RID constructor, called by the idiom RID(from).
RID:__tostring () Returns a Lua string representation of this RID.


Methods

RID:get_id ()
Returns the ID of the referenced resource.

Returns:

    int

Metamethods

RID:__concat (a, b)
Concatenates values.

Parameters:

  • a First value, stringified with GD.str
  • b First value, stringified with GD.str

Returns:

    String
RID:__eq (a, b)
Equality comparison (a == b). If either a or b are not RIDs, always return false.

Parameters:

  • a
  • b

Returns:

    bool
RID:__lt (a, b)
Less than comparison (a < b).

Parameters:

  • a
  • b

Returns:

    bool
RID:__new ([from])
RID constructor, called by the idiom RID(from).

Parameters:

  • from (optional)

Returns:

    RID
RID:__tostring ()
Returns a Lua string representation of this RID.

Returns:

    string
generated by LDoc 1.4.6 Last updated 2023-01-04 08:52:34