Module utm

Module utm 

Source
Expand description

Typed UTM (.utm) model and conversion helpers. UTM (.utm) typed generic wrapper.

UTM resources are GFF-backed merchant/store templates.

§Field Layout

UTM root struct
+-- ResRef / Tag / LocName / Comment
+-- MarkUp / MarkDown / OnOpenStore / BuySellFlag / ID
+-- ItemList                         (List<Struct>)
    +-- InventoryRes / Infinite / Dropable
    +-- Repos_PosX / Repos_PosY

Structs§

Utm
Typed UTM model built from/to Gff data.
UtmInventoryItem
One UTM inventory entry from the ItemList field.

Enums§

UtmError
Errors produced while reading or writing typed UTM data.

Functions§

read_utm
Reads typed UTM data from a reader at the current stream position.
read_utm_from_bytes
Reads typed UTM data directly from bytes.
write_utm
Writes typed UTM data to an output writer.
write_utm_to_vec
Serializes typed UTM data into a byte vector.