Skip to main content

parse_camera

Function parse_camera 

Source
fn parse_camera(rest: &str) -> Option<Rect>
Expand description

Parse camera <x> <y> <w> <h> (grid cells) into the world rect it frames. None unless all four numbers are present and the size is within CAMERA_MIN_CELLS..=CAMERA_MAX_CELLS, so a half-typed or nonsense camera simply offers no row to pick.