Bazaar developer reference

CvPreGame::bandwidthDescription()

Defined in
CvPreGame.cpp, line 692
Hook name
CivHooks::CvPreGame_bandwidthDescription

Hooks

static bool BeforeCvPreGame_bandwidthDescription(CvString& result);static void AfterCvPreGame_bandwidthDescription(CvString& result);static CvString ReplaceCvPreGame_bandwidthDescription(CvString (*original)());CivRegisterBefore<CivHooks::CvPreGame_bandwidthDescription>(host, &BeforeCvPreGame_bandwidthDescription);CivRegisterAfter<CivHooks::CvPreGame_bandwidthDescription>(host, &AfterCvPreGame_bandwidthDescription);CivRegisterReplace<CivHooks::CvPreGame_bandwidthDescription>(host, &ReplaceCvPreGame_bandwidthDescription);

Code

692CvString bandwidthDescription()693{694	if(bandwidth() == BANDWIDTH_BROADBAND)695	{696		//return CvString("broadband");697		return GetLocalizedText("broadband");698	}699	else700	{701		return GetLocalizedText("modem");702		//return CvString("modem");703	}704}

Calls