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
Soundslist 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>)
`-- SoundStructs§
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.