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