Module godotarrays

Types

GodotArray* {.
byref
.} = object data: array[sizeof(int), byte]
  Source Edit

Procs

proc len*(self: GodotArray): cint {.
noSideEffect, importc: "godot_array_size"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray) {.
importc: "godot_array_new"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; pca: GodotPoolColorArray) {.
importc: "godot_array_new_pool_coloarray"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; pv3a: GodotPoolVector3Array) {.
importc: "godot_array_new_pool_vector3_array"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; pv2a: GodotPoolVector2Array) {.
importc: "godot_array_new_pool_vector2_array"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; psa: GodotPoolStringArray) {.
importc: "godot_array_new_pool_string_array"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; pra: GodotPoolRealArray) {.
importc: "godot_array_new_pool_real_array"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; pia: GodotPoolIntArray) {.
importc: "godot_array_new_pool_int_array"
.}
  Source Edit
proc initGodotArray*(dest: var GodotArray; pba: GodotPoolByteArray) {.
importc: "godot_array_new_pool_byte_array"
.}
  Source Edit
proc iniGodotArray*(dest: var GodotArray; src: GodotArray) {.
importc: "godot_array_new_copy"
.}
  Source Edit
proc deinit*(self: var GodotArray) {.
importc: "godot_array_destroy"
.}
  Source Edit
proc `[]=`*(self: var GodotArray; idx: cint; value: GodotVariant) {.
noSideEffect, importc: "godot_array_set"
.}
  Source Edit
proc `[]`*(self: GodotArray; idx: cint): GodotVariant {.
noSideEffect, importc: "godot_array_get"
.}
  Source Edit
proc mget*(self: var GodotArray; idx: cint): ptr GodotVariant {.
importc: "godot_array_operator_index"
.}
  Source Edit
proc add*(self: var GodotArray; value: GodotVariant) {.
noSideEffect, importc: "godot_array_append"
.}
  Source Edit
proc clear*(self: var GodotArray) {.
importc: "godot_array_clear"
.}
  Source Edit
proc count*(self: GodotArray; value: GodotVariant): cint {.
noSideEffect, importc: "godot_array_count"
.}
  Source Edit
proc isEmpty*(self: GodotArray): bool {.
noSideEffect, importc: "godot_array_empty"
.}
  Source Edit
proc erase*(self: var GodotArray; value: GodotVariant) {.
importc: "godot_array_erase"
.}
  Source Edit
proc first*(self: GodotArray): GodotVariant {.
noSideEffect, importc: "godot_array_front"
.}
  Source Edit
proc last*(self: GodotArray): GodotVariant {.
noSideEffect, importc: "godot_array_back"
.}
  Source Edit
proc find*(self: GodotArray; what: GodotVariant; f: cint): cint {.
noSideEffect, importc: "godot_array_find"
.}
  Source Edit
proc findLast*(self: GodotArray; what: GodotVariant): cint {.
noSideEffect, importc: "godot_array_find_last"
.}
  Source Edit
proc contains*(self: GodotArray; value: GodotVariant): bool {.
noSideEffect, importc: "godot_array_has"
.}
  Source Edit
proc godotHash*(self: GodotArray): cint {.
noSideEffect, importc: "godot_array_hash"
.}
  Source Edit
proc hash*(self: GodotArray): Hash {.
inline
.}
  Source Edit
proc insert*(self: var GodotArray; pos: cint; value: GodotVariant) {.
importc: "godot_array_insert"
.}
  Source Edit
proc reverse*(self: var GodotArray) {.
importc: "godot_array_invert"
.}
  Source Edit
proc popLast*(self: var GodotArray): GodotVariant {.
importc: "godot_array_pop_back"
.}
  Source Edit
proc popFirst*(self: var GodotArray): GodotVariant {.
importc: "godot_array_pop_front"
.}
  Source Edit
proc addLast*(self: var GodotArray; value: GodotVariant) {.
importc: "godot_array_push_back"
.}
  Source Edit
proc addFirst*(self: var GodotArray; value: GodotVariant) {.
importc: "godot_array_push_front"
.}
  Source Edit
proc delete*(self: var GodotArray; idx: cint) {.
importc: "godot_array_remove"
.}
  Source Edit
proc setLen*(self: var GodotArray; size: cint) {.
importc: "godot_array_resize"
.}
  Source Edit
proc rfind*(self: GodotArray; what: GodotVariant; f: cint): cint {.
noSideEffect, importc: "godot_array_rfind"
.}
  Source Edit
proc sort*(self: var GodotArray) {.
importc: "godot_array_sort"
.}
  Source Edit
proc sortCustom*(self: var GodotArray; obj: var GodotObject; funcName: GodotString) {.
importc: "godot_array_sort_custom"
.}
  Source Edit
proc `$`*(self: GodotArray): string
  Source Edit

Iterators

iterator items*(self: GodotArray): GodotVariant
  Source Edit
iterator mitems*(self: var GodotArray): var GodotVariant
  Source Edit
iterator pairs*(self: GodotArray): tuple[key: cint, val: GodotVariant]
  Source Edit
iterator mpairs*(self: var GodotArray): tuple[key: cint, val: var GodotVariant]
  Source Edit