Module vis

Module vis 

Source
Expand description

VIS ASCII visibility support. VIS ASCII reader and writer.

VIS (visibility) resources define which rooms are visible from each other and are used for renderer culling decisions.

§Format Layout

<observer_room> <child_count>
  <visible_room>
  <visible_room>
<observer_room> <child_count>
  ...

Empty lines are ignored. Room names are treated case-insensitively and are normalized to lowercase in-memory. Text is decoded/encoded as Windows-1252.

Structs§

Vis
In-memory VIS graph.

Enums§

VisError
Errors produced while parsing or serializing VIS ASCII data.

Functions§

read_vis
Reads a VIS graph from a reader.
read_vis_from_bytes
Reads a VIS graph from bytes.
write_vis
Writes a VIS graph to a writer.
write_vis_to_vec
Serializes a VIS graph to bytes.