Function process_section

Source
pub fn process_section(
    i: &mut Section<'_, '_>,
    game_state: &mut GameState,
    players: &mut Vec<Player>,
) -> Result<(), ParsingError>
Expand description

A function that processes a section of the save file. Based on the given section, it will update the GameState object and the Player vector. The GameState object is used to store all the data from the save file, while the Player vector is used to store the player data. Essentially the fasade of the parser, that makes the choices on which sections to parse and how to parse them.