SavegameManager::SavegameManager(ska::EntityManager& em, PokemonGameEventDispatcher& ged, const std::string& filename): m_entityManager(em), m_ged(ged) { m_pathname = filename; loadTrainer(); }
void SavegameManager::loadGame(const std::string& pathname) { m_pathname = pathname; loadTrainer(); loadPokemonTeam(); VariablesAcquisition(m_game_variables, "./Data/Saves/" + m_pathname + "/variables.ini"); std::ofstream tmpScriptList(("./Data/Saves/" + m_pathname + "/tmpscripts.data").c_str(), std::ios::trunc); }
void Tensorflow::setTrainer(Trainer *trainer) { loadTrainer(trainer); };
void Tensorflow::listen_enter() { if (!_is_loaded && !loadTrainer()) { ssi_wrn("could not load trainer '%s'", _options.trainer); } }