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_PosyStructs§
- Utm
- Typed UTM model built from/to
Gffdata. - UtmInventory
Item - One UTM inventory entry from the
ItemListfield.
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.