Update for latest Nim
This commit is contained in:
parent
e494dc914a
commit
a93dcd1d4d
2 changed files with 3 additions and 3 deletions
|
|
@ -4,4 +4,4 @@ description = "Godot Engine bindings"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "godot"
|
srcDir = "godot"
|
||||||
|
|
||||||
requires "nim >= 0.17.0", "compiler >= 0.17.0"
|
requires "nim >= 0.17.3", "compiler >= 0.17.3"
|
||||||
|
|
@ -794,7 +794,7 @@ proc genTypeFile(types: Table[string, GodotType], targetDir: string) =
|
||||||
)
|
)
|
||||||
godotApiTypesTree.add(regNode)
|
godotApiTypesTree.add(regNode)
|
||||||
|
|
||||||
renderModule(godotApiTypesTree, targetDir / "godottypes.nim")
|
writeFile(targetDir / "godottypes.nim", renderTree(godotApiTypesTree))
|
||||||
|
|
||||||
proc genSingletonWithDerived(tree: PNode, typ: GodotType,
|
proc genSingletonWithDerived(tree: PNode, typ: GodotType,
|
||||||
types: Table[string, GodotType]) =
|
types: Table[string, GodotType]) =
|
||||||
|
|
@ -909,7 +909,7 @@ proc genApi*(targetDir: string, apiJsonFile: string) =
|
||||||
makeMethod(types, tree, methodBindRegsitry, typ, meth,
|
makeMethod(types, tree, methodBindRegsitry, typ, meth,
|
||||||
withImplementation = true)
|
withImplementation = true)
|
||||||
|
|
||||||
renderModule(tree, targetDir / moduleName & ".nim")
|
writeFile(targetDir / moduleName & ".nim", renderTree(tree))
|
||||||
|
|
||||||
megaImport.add("import \"" & moduleName & "\"\n")
|
megaImport.add("import \"" & moduleName & "\"\n")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue