Skip to main content

Module utm

Module utm 

Source
Expand description

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

Merchants are storefronts. A shop behaves as a container interface that buys and sells .uti items, so a .utm is mostly economic markups and inventory parameters rather than item data of its own.

§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§

author_utm
Authors the UTM file the typed view describes, into a writer.
author_utm_to_vec
Authors the UTM file the typed view describes, as bytes.
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.