Update for latest Godot
This commit is contained in:
parent
a1c378301a
commit
4e24244c48
5 changed files with 37 additions and 10 deletions
|
|
@ -126,6 +126,15 @@ proc sortCustom*(self: var GodotArray; obj: ptr GodotObject;
|
|||
funcName: GodotString) {.inline.} =
|
||||
getGDNativeAPI().arraySortCustom(self, obj, funcName)
|
||||
|
||||
proc binarySearch*(self: var GodotArray, val: ptr GodotVariant,
|
||||
before: bool) {.inline.} =
|
||||
getGDNativeAPI().arrayBSearch(self, val, before)
|
||||
|
||||
proc binarySearchCustom*(self: var GodotArray, val: ptr GodotVariant,
|
||||
obj: ptr GodotObject, funcName: GodotString,
|
||||
before: bool) {.inline.} =
|
||||
getGDNativeAPI().arrayBSearchCustom(self, val, obj, funcName, before)
|
||||
|
||||
iterator items*(self: GodotArray): GodotVariant =
|
||||
for i in 0..<self.len:
|
||||
yield self[i]
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ proc subnameCount*(self: GodotNodePath): cint {.inline.} =
|
|||
proc getSubname*(self: GodotNodePath; idx: cint): GodotString {.inline.} =
|
||||
getGDNativeAPI().nodePathGetSubname(self, idx)
|
||||
|
||||
proc property*(self: GodotNodePath): GodotString {.inline.} =
|
||||
getGDNativeAPI().nodePathGetProperty(self)
|
||||
proc getConcatenatedSubnames*(self: GodotNodePath): GodotString {.inline.} =
|
||||
getGDNativeAPI().nodePathGetConcatenatedSubnames(self)
|
||||
|
||||
proc isEmpty*(self: GodotNodePath): bool {.inline.} =
|
||||
getGDNativeAPI().nodePathIsEmpty(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue