Skip to main content

Module utw

Module utw 

Source
Expand description

Typed UTW (.utw) waypoint blueprint and conversion helpers. UTW (.utw) typed generic wrapper.

Waypoints are invisible logic markers: named static coordinates in an area that patrol routes, spawn points, camera focal points and the player’s map pins refer to. Nothing renders them.

§Field Layout

UTW root struct
+-- TemplateResRef / Tag / LocalizedName
+-- Appearance / PaletteID / Comment
+-- HasMapNote / MapNoteEnabled / MapNote
+-- Description / LinkedTo
+-- XPosition / YPosition / ZPosition
+-- XOrientation / YOrientation / ZOrientation

Structs§

Utw
Typed UTW model built from/to Gff data.

Enums§

UtwError
Errors produced while reading or writing typed UTW data.

Functions§

author_utw
Authors the UTW file the typed view describes, into a writer.
author_utw_to_vec
Authors the UTW file the typed view describes, as bytes.
read_utw
Reads typed UTW data from a reader at the current stream position.
read_utw_from_bytes
Reads typed UTW data directly from bytes.