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
Metamethods
- RID:__concat (a, b)
-
Concatenates values.
Parameters:
Returns:
- RID:__eq (a, b)
-
Equality comparison (
a == b). If eitheraorbare not RIDs, always returnfalse.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:__tostring ()
-
Returns a Lua string representation of this RID.
Returns: