Documentation & Travis & Refactoring

This commit is contained in:
Ruslan Mustakov 2017-07-31 18:52:07 +07:00
commit 988b9e1f11
27 changed files with 772 additions and 123 deletions

View file

@ -2,7 +2,7 @@
type
GodotArray* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
import hashes
import godotobjects, godotpoolarrays, godotvariants, godotstrings

View file

@ -2,7 +2,7 @@
type
GodotDictionary* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
import godotarrays, godotvariants, godotstrings

View file

@ -4,7 +4,7 @@ import godotstrings
type
GodotNodePath* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
proc initGodotNodePath*(dest: var GodotNodePath; s: GodotString) {.
importc: "godot_node_path_new".}

View file

@ -2,22 +2,22 @@
type
GodotPoolByteArray* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
GodotPoolIntArray* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
GodotPoolRealArray* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
GodotPoolStringArray* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
GodotPoolVector2Array* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
GodotPoolVector3Array* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
GodotPoolColorArray* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
import godotstrings, godotarrays
import core / [godotbase, colors, vector2, vector3]
import core.godotbase, core.colors, core.vector2, core.vector3
# byte

View file

@ -2,7 +2,7 @@
type
GodotString* {.byref.} = object
p: pointer
data: array[sizeof(int), byte]
proc initGodotString(dest: var GodotString) {.
importc: "godot_string_new".}

View file

@ -46,7 +46,7 @@ type
expected*: VariantType
GodotVariant* {.byref.} = object
data: array[16 + sizeof(int), byte]
data: array[4 + sizeof(int) div 4, float32]
import godotobjects, godotarrays, godotpoolarrays,
godotstrings, godotnodepaths, godotdictionaries

1
godot/internal/nim.cfg Normal file
View file

@ -0,0 +1 @@
--path:"$projectdir/../"