Module utd

Module utd 

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

Utd
Typed UTD model built from/to Gff data.

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.