pub trait SprjGame: Send + Sync {
    fn name(&self) -> &'static str;
    fn param_repository(&self) -> &'static ParamRepository;
    fn enable_file_overrides(&self) -> bool;
}
Expand description

Global game instance for a FROM SOFTWARE game. This interface is exclusively for code shared among the majority of titles supported by the “SPRJ” framework.

Game specific data/functions can be accessed by downcasting a SprjGame via get_game_api:

let game: &dyn SprjGame = &DarkSouls3;
if let Some(ds3) = get_game_api::<DarkSouls3>(game) {
    ds3.enable_network_logging();
}

Required Methods

Get a friendly description of this game.

Get a reference to the ParamRepository of this game.

Enable local file overrides. Colloquially known as the “UXM” patch.

Implementors