pub fn save_replay_tick_handler<G: Game, T: Write + Send + 'static>( writer: T, ) -> Box<dyn FnMut(Option<&Vec<G::Event>>, &G) + Send>