Migrate to NativeScript+GDNative
This commit is contained in:
parent
1e6646713f
commit
b41a37681f
22 changed files with 608 additions and 611 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import godotbase
|
||||
|
||||
type
|
||||
RID* {.importc: "godot_rid", header: "godot_rid.h", byref.} = object
|
||||
RID* {.importc: "godot_rid", header: "godot/rid.h", byref.} = object
|
||||
|
||||
proc initRID(dest: var RID) {.
|
||||
importc: "godot_rid_new",
|
||||
header: "godot_rid.h".}
|
||||
header: "godot/rid.h".}
|
||||
proc initRID(dest: var RID; obj: ptr GodotObject) {.
|
||||
importc: "godot_rid_new_with_resource", header: "godot_rid.h".}
|
||||
importc: "godot_rid_new_with_resource", header: "godot/rid.h".}
|
||||
|
||||
proc initRID*(): RID {.inline.} =
|
||||
initRID(result)
|
||||
|
|
@ -17,12 +17,12 @@ proc initRID*(obj: ptr GodotObject): RID {.inline.} =
|
|||
|
||||
proc idCInt(self: RID): cint {.
|
||||
noSideEffect,
|
||||
importc: "godot_rid_get_id", header: "godot_rid.h".}
|
||||
importc: "godot_rid_get_id", header: "godot/rid.h".}
|
||||
|
||||
proc id*(self: RID): uint32 {.inline.} =
|
||||
cast[uint32](self.idCInt())
|
||||
|
||||
proc `==`*(a, b: RID): bool {.
|
||||
importc: "godot_rid_operator_equal", header: "godot_rid.h".}
|
||||
importc: "godot_rid_operator_equal", header: "godot/rid.h".}
|
||||
proc `<`*(a, b: RID): bool {.
|
||||
importc: "godot_rid_operator_less", header: "godot_rid.h".}
|
||||
importc: "godot_rid_operator_less", header: "godot/rid.h".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue