Expand description
Typed UTP (.utp) model and conversion helpers.
UTP (.utp) typed generic wrapper.
UTP resources are GFF-backed placeable templates.
§Field Layout (simplified)
UTP root struct
+-- TemplateResRef / Tag / LocName / Description
+-- Appearance / Faction / Plot / Invulnerable / Min1HP
+-- Lockable / Locked / KeyRequired / OpenLockDC / CloseLockDC / KeyName
+-- Useable / Static / PartyInteract
+-- HP / CurrentHP / Hardness / Fort / Ref / Will
+-- Script hooks (OnClosed/OnDamaged/...)
+-- ItemList (List<Struct>)
| +-- InventoryRes / Dropable
| `-- Repos_PosX / Repos_PosYStructs§
- Utp
- Typed UTP model built from/to
Gffdata. - UtpInventory
Item - One UTP inventory item entry from the
ItemListfield.
Enums§
- UtpError
- Errors produced while reading or writing typed UTP data.
Functions§
- read_
utp - Reads typed UTP data from a reader at the current stream position.
- read_
utp_ from_ bytes - Reads typed UTP data directly from bytes.
- write_
utp - Writes typed UTP data to an output writer.
- write_
utp_ to_ vec - Serializes typed UTP data into a byte vector.