No destructors

This commit is contained in:
Ruslan Mustakov 2017-07-28 00:28:17 +07:00
commit f5769045fc
34 changed files with 1701 additions and 1216 deletions

View file

@ -1,6 +1,8 @@
# Copyright (c) 2017 Xored Software, Inc.
import godotbase, strings
import godotbase
import "../internal/godotstrings.nim"
type
Vector2* {.byref.} = object
@ -10,8 +12,9 @@ type
proc vec2*(x, y: float32): Vector2 {.inline.} =
Vector2(x: x, y: y)
proc toGodotString*(self: Vector2): GodotString {.
proc toGodotString(self: Vector2): GodotString {.
importc: "godot_vector2_as_string".}
proc `$`*(self: Vector2): string {.inline.} =
$self.toGodotString()