You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: game_state.rs
    path of file: ./repos/rust_rpg_toolkit/src/nodes
    
    the code of the file until where you have to start completion: use crate::prelude::*;

const CHARACTER_SAVE_INTERVAL: f32 = 30.0;

pub struct GameState {
    pub chapter_index: usize,
    pub map_id: String,
    pub dead_actors: Vec<String>,
    pub player_spawn_point: Vec2,
    pub character
    
    pub fn get_player_character(&self) -> Option<Character> {
        if let Some(actor) = get_player_actor() {
            let character =
                actor.to_character(self.chapter_index, &self.map_id, self.is_permadeath);
            return Some(character);
        }
        None
    }