Skip to main content

Module data

Module data 

Source
Expand description

Yog Data files as the designers look things up in them (their typed strings as written: the schema reading them isn’t run here).

Functions§

at
The value at keys of v, one map key after another.
read_bytes
A file of JSON (the game’s) or Yog Data text as a value.
read_object
A Yog Data file that’s one object (a map), None if it isn’t.
runtime_ids
v with its references as the runtime writes ids: @item:x → x, @tag:item:x → #x (what yog-book’s renderer and the hosts read).