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: Array; idx: int; value: Variant) {.
inline, raises: [], tags: []
.}
  Source Edit
proc `[]`(self: Array; idx: int): Variant {.
inline, raises: [], tags: []
.}
  Source Edit
proc add(self: Array; value: Variant) {.
inline, raises: [], tags: []
.}
  Source Edit
proc clear(self: 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: 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: Array; pos: int; value: Variant) {.
inline, raises: [], tags: []
.}
  Source Edit
proc reverse(self: Array) {.
inline, raises: [], tags: []
.}
  Source Edit
proc popLast(self: Array): Variant {.
inline, raises: [], tags: []
.}
  Source Edit
proc popFirst(self: Array): Variant {.
inline, raises: [], tags: []
.}
  Source Edit
proc addLast(self: Array; value: Variant) {.
inline, raises: [], tags: []
.}
  Source Edit
proc addFirst(self: Array; value: Variant) {.
inline, raises: [], tags: []
.}
  Source Edit
proc delete(self: Array; idx: int) {.
inline, raises: [], tags: []
.}
  Source Edit
proc setLen(self: 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: 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