MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setCurrentCity

Method setCurrentCity

game/state/gamestate.cpp:264–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262void GameState::applyMods() { luaGameState.callHook("applyMods", 0, 0); }
263
264void GameState::setCurrentCity(StateRef<City> city)
265{
266 current_city = city;
267 for (auto &u : current_city->researchUnlock)
268 {
269 u->forceComplete();
270 }
271}
272
273void GameState::validate()
274{

Callers 1

updateMethod · 0.80

Calls 1

forceCompleteMethod · 0.80

Tested by

no test coverage detected