Skip to main content

run_with_controller

Function run_with_controller 

Source
pub fn run_with_controller<R>(
    game: &mut GameState,
    player: PlayerId,
    controller: Option<PlayerId>,
    f: impl FnOnce(&mut GameState) -> R,
) -> R