Expand description
Typed UTD (.utd) model and conversion helpers.
UTD (.utd) typed generic wrapper.
UTD resources are GFF-backed door templates.
§Scope of this slice
- Typed access for all door identity/state/script/link fields.
- K1-aligned read defaults for door booleans observed in
LoadDoor. - Superset-correct: all fields are modeled, no passthrough needed.
§Field Layout (simplified)
UTD root struct
+-- TemplateResRef / Tag / LocName / Description
+-- GenericType / Appearance / OpenState
+-- Lock + trap + durability fields
+-- Script hooks (OnClosed/OnDamaged/...)
+-- Transition fields (LinkedTo/LinkedToFlags/LinkedToModule/TransitionDestination)Structs§
Enums§
- UtdError
- Errors produced while reading or writing typed UTD data.
Functions§
- read_
utd - Reads typed UTD data from a reader at the current stream position.
- read_
utd_ from_ bytes - Reads typed UTD data directly from bytes.
- write_
utd - Writes typed UTD data to an output writer.
- write_
utd_ to_ vec - Serializes typed UTD data into a byte vector.