Initial version

This commit is contained in:
Ruslan Mustakov 2017-07-11 22:22:17 +07:00
commit f1c7e80c51
30 changed files with 4508 additions and 0 deletions

14
godot/nimruntime.nim Normal file
View file

@ -0,0 +1,14 @@
# Copyright 2017 Xored Software, Inc.
import asyncdispatch
import godot, node
gdobj NimRuntime of Node:
method process*(delta: float32) =
if asyncdispatch.hasPendingOperations():
poll(0)
GC_step(2000, false, 0)
when not defined(release):
onUnhandledException = proc(errorMsg: string) =
printError("Unhandled Nim exception: " & errorMsg)