Skip to main content

write_line_of_sight

Function write_line_of_sight 

Source
pub fn write_line_of_sight(
    layout: &StartposLayout,
    parent: &str,
    grid: &VisionGrid,
    vision: Option<&Vision>,
) -> Result<RecordNode>
Expand description

Writes a LINE_OF_SIGHT record under a parent record: whether it sees, the world bounds of what it sees and the area itself. Without an area, it sees nothing and has no area.

ยงErrors

Returns an error if the layout lacks the records.