Module dictionaries

Types

Dictionary = ref object
  godotDictionary: GodotDictionary
  Source Edit

Procs

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

Iterators

iterator keys(dict: Dictionary): Variant {.
raises: [], tags: []
.}
  Source Edit
iterator values(dict: Dictionary): Variant {.
raises: [], tags: []
.}
  Source Edit
iterator pairs(dict: Dictionary): tuple[key, val: Variant] {.
raises: [], tags: []
.}
  Source Edit