Module uts

Module uts 

Source
Expand description

Typed UTS (.uts) model and conversion helpers. UTS (.uts) typed generic wrapper.

UTS resources are GFF-backed ambient sound templates.

§Scope of this slice

  • Typed access for all sound identity/configuration fields.
  • Typed handling for the Sounds list entries.

§Field Layout

UTS root struct
+-- TemplateResRef / Tag / LocName / Comment
+-- Active / Continuous / Looping / Positional / RandomPosition / Random
+-- Elevation / MinDistance / MaxDistance
+-- RandomRangeX / RandomRangeY
+-- Interval / IntervalVrtn / PitchVariation / FixedVariance
+-- Priority / Volume / VolumeVrtn
+-- Hours / Times / PaletteID
+-- Sounds                          (List<Struct>)
    `-- Sound

Structs§

Uts
Typed UTS model built from/to Gff data.
UtsSound
One UTS sound entry from the Sounds list.

Enums§

UtsError
Errors produced while reading or writing typed UTS data.

Functions§

read_uts
Reads typed UTS data from a reader at the current stream position.
read_uts_from_bytes
Reads typed UTS data directly from bytes.
write_uts
Writes typed UTS data to an output writer.
write_uts_to_vec
Serializes typed UTS data into a byte vector.