Module arrays

Types

Array* = ref object
  godotArray: GodotArray
  Source Edit

Procs

proc godotArray*(arr: Array): ptr GodotArray {.
inline
.}
WARNING: do not keep the returned value for longer than the lifetime of arr   Source Edit
proc newArray*(arr: GodotArray): Array {.
inline
.}
  Source Edit
proc newArray*(s: varargs[Variant]): Array
  Source Edit
proc newArray*(s: openarray[Variant]): Array
  Source Edit
proc newArray*(pca: PoolColorArray): Array {.
inline
.}
  Source Edit
proc newArray*(pv3a: PoolVector3Array): Array {.
inline
.}
  Source Edit
proc newArray*(pv2a: PoolVector2Array): Array {.
inline
.}
  Source Edit
proc newArray*(psa: PoolStringArray): Array {.
inline
.}
  Source Edit
proc newArray*(pra: PoolRealArray): Array {.
inline
.}
  Source Edit
proc newArray*(pia: PoolIntArray): Array {.
inline
.}
  Source Edit
proc newArray*(pba: PoolByteArray): Array {.
inline
.}
  Source Edit
proc `[]=`*(self: var Array; idx: int; value: Variant) {.
inline
.}
  Source Edit
proc `[]`*(self: Array; idx: int): Variant {.
inline
.}
  Source Edit
proc add*(self: var Array; value: Variant) {.
inline
.}
  Source Edit
proc clear*(self: var Array) {.
inline
.}
  Source Edit
proc count*(self: Array; value: Variant): int {.
inline
.}
  Source Edit
proc isEmpty*(self: Array): bool {.
inline
.}
  Source Edit
proc erase*(self: var Array; value: Variant) {.
inline
.}
  Source Edit
proc first*(self: Array): Variant {.
inline
.}
  Source Edit
proc last*(self: Array): Variant {.
inline
.}
  Source Edit
proc find*(self: Array; what: Variant; f: int): int {.
inline
.}
  Source Edit
proc findLast*(self: Array; what: Variant): int {.
inline
.}
  Source Edit
proc contains*(self: Array; value: Variant): bool {.
inline
.}
  Source Edit
proc hash*(self: Array): Hash {.
inline
.}
  Source Edit
proc insert*(self: var Array; pos: int; value: Variant) {.
inline
.}
  Source Edit
proc reverse*(self: var Array) {.
inline
.}
  Source Edit
proc popLast*(self: var Array): Variant {.
inline
.}
  Source Edit
proc popFirst*(self: var Array): Variant {.
inline
.}
  Source Edit
proc addLast*(self: var Array; value: Variant) {.
inline
.}
  Source Edit
proc addFirst*(self: var Array; value: Variant) {.
inline
.}
  Source Edit
proc delete*(self: var Array; idx: int) {.
inline
.}
  Source Edit
proc setLen*(self: var Array; size: int) {.
inline
.}
  Source Edit
proc rfind*(self: Array; what: Variant; f: int): int {.
inline
.}
  Source Edit
proc len*(self: Array): int {.
inline
.}
  Source Edit
proc sort*(self: var Array) {.
inline
.}
  Source Edit
proc `$`*(self: Array): string
  Source Edit

Iterators

iterator items*(self: Array): Variant
  Source Edit
iterator pairs*(self: Array): tuple[key: int, val: Variant]
  Source Edit