Documentation & Travis & Refactoring
This commit is contained in:
parent
ec707ea776
commit
988b9e1f11
27 changed files with 772 additions and 123 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
type
|
||||
GodotArray* {.byref.} = object
|
||||
p: pointer
|
||||
data: array[sizeof(int), byte]
|
||||
|
||||
import hashes
|
||||
import godotobjects, godotpoolarrays, godotvariants, godotstrings
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
type
|
||||
GodotDictionary* {.byref.} = object
|
||||
p: pointer
|
||||
data: array[sizeof(int), byte]
|
||||
|
||||
import godotarrays, godotvariants, godotstrings
|
||||
|
||||
|
|
|
|||
|
|
@ -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".}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
type
|
||||
GodotString* {.byref.} = object
|
||||
p: pointer
|
||||
data: array[sizeof(int), byte]
|
||||
|
||||
proc initGodotString(dest: var GodotString) {.
|
||||
importc: "godot_string_new".}
|
||||
|
|
|
|||
|
|
@ -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
1
godot/internal/nim.cfg
Normal file
|
|
@ -0,0 +1 @@
|
|||
--path:"$projectdir/../"
|
||||
Loading…
Add table
Add a link
Reference in a new issue