Module arrays

Types

Array = ref object
  godotArray: GodotArray
  Source Edit

Procs

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

Iterators

iterator items(self: Array): Variant {.
raises: [], tags: []
.}
  Source Edit
iterator pairs(self: Array): tuple[key: int, val: Variant] {.
raises: [], tags: []
.}
  Source Edit