/
RID.hx
51 lines (43 loc) · 1.21 KB
/
RID.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
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 `godot.VisualServer`.
**/
@:libType
@:csNative
@:native("Godot.RID")
@:autoBuild(godot.Godot.buildUserClass())
extern class RID implements cs.system.IDisposable {
/**
The pointer to the native instance of this `godot.RID`.
**/
@:native("NativeInstance")
public var nativeInstance(default, never):cs.system.IntPtr;
/**
Disposes of this `godot.RID`.
**/
@:native("Dispose")
public function dispose():Void;
/**
Constructs a new `godot.RID` for the given `godot.Object` `from`.
**/
@:native("new")
public function new(from:godot.Object):Void;
/**
Returns the ID of the referenced resource.
@returns The ID of the referenced resource.
**/
@:native("GetId")
public function getId():Int;
/**
Converts this `godot.RID` to a string.
@returns A string representation of this RID.
**/
@:native("ToString")
public function toString():std.String;
}