Module utt

Module utt 

Source
Expand description

Typed UTT (.utt) model and conversion helpers. UTT (.utt) typed generic wrapper.

UTT resources are GFF-backed trigger templates.

§Field Layout (simplified)

UTT root struct
+-- TemplateResRef / Tag / LocalizedName / Comment
+-- Cursor / Type / Faction / HighlightHeight
+-- AutoRemoveKey / KeyName
+-- TrapDetectable / TrapDetectDC / TrapDisarmable / DisarmDC / TrapFlag / TrapOneShot / TrapType
+-- Script hooks (OnDisarm/OnTrapTriggered/OnClick/ScriptHeartbeat/ScriptOnEnter/ScriptOnExit/ScriptUserDefine)
+-- LinkedTo / LinkedToFlags / LinkedToModule / PartyRequired / SetByPlayerParty
+-- TransitionDestin (localized destination text)
+-- PortraitId / Portrait / LoadScreenID / PaletteID

Structs§

Utt
Typed UTT model built from/to Gff data.

Enums§

UttError
Errors produced while reading or writing typed UTT data.

Functions§

read_utt
Reads typed UTT data from a reader at the current stream position.
read_utt_from_bytes
Reads typed UTT data directly from bytes.
write_utt
Writes typed UTT data to an output writer.
write_utt_to_vec
Serializes typed UTT data into a byte vector.