Use GDNative API struct

This commit is contained in:
Ruslan Mustakov 2017-10-04 23:41:15 +07:00
commit b62db02d8f
32 changed files with 2846 additions and 1535 deletions

View file

@ -1,7 +1,8 @@
import tables
import internal.godotobjects, internal.godotvariants, internal.godotpoolarrays,
internal.godotstrings, internal.godotnodepaths
import godotcoretypes
import internal.godotinternaltypes, internal.godotvariants,
internal.godotstrings
type
Variant* = ref object
@ -267,5 +268,5 @@ proc `<`*(self, other: Variant): bool =
proc hashCompare*(self, other: Variant): bool =
self.godotVariant.hashCompare(other.godotVariant)
proc booleanize*(self: Variant; isValid: var bool): bool =
self.godotVariant.booleanize(isValid)
proc booleanize*(self: Variant): bool =
self.godotVariant.booleanize()