Module dictionaries

Types

Dictionary* = ref object
  godotDictionary: GodotDictionary
  Source Edit

Procs

proc newDictionary*(): Dictionary {.
inline
.}
  Source Edit
proc newDictionary*(dict: GodotDictionary): Dictionary {.
inline
.}
  Source Edit
proc godotDictionary*(dict: Dictionary): ptr GodotDictionary
WARNING: do not keep the returned value for longer than the lifetime of dict   Source Edit
proc len*(self: Dictionary): int {.
inline
.}
  Source Edit
proc isEmpty*(self: Dictionary): bool {.
inline
.}
  Source Edit
proc clear*(self: var Dictionary) {.
inline
.}
  Source Edit
proc newVariant*(dict: Dictionary): Variant {.
inline
.}
  Source Edit
proc asDictionary*(self: Variant): Dictionary {.
inline
.}
  Source Edit
proc contains*(self: Dictionary; key: Variant): bool {.
inline
.}
  Source Edit
proc contains*(self: Dictionary; keys: Array): bool {.
inline
.}
  Source Edit
proc del*(self: var Dictionary; key: Variant) {.
inline
.}
  Source Edit
proc hash*(self: Dictionary): Hash {.
inline
.}
  Source Edit
proc keys*(self: Dictionary): Array {.
inline
.}
  Source Edit
proc values*(self: Dictionary): Array {.
inline
.}
  Source Edit
proc `[]`*(self: Dictionary; key: Variant): Variant {.
inline
.}
  Source Edit
proc `[]`*(self: Dictionary; keyStr: string): Variant {.
inline
.}
  Source Edit
proc `[]=`*(self: var Dictionary; key, value: Variant) {.
inline
.}
  Source Edit
proc `==`*(self, other: Dictionary): bool {.
inline
.}
  Source Edit
proc toJson*(self: Dictionary): string {.
inline
.}
  Source Edit
proc `$`*(self: Dictionary): string
  Source Edit

Iterators

iterator keys*(dict: Dictionary): Variant
  Source Edit
iterator values*(dict: Dictionary): Variant
  Source Edit
iterator pairs*(dict: Dictionary): tuple[key, val: Variant]
  Source Edit