Bazaar developer reference

CvPreGame::setBandwidth(const CvString &)

Defined in
CvPreGame.cpp, line 2307
Hook name
CivHooks::CvPreGame_setBandwidth_with_const_CvString

Hooks

static bool BeforeCvPreGame_setBandwidth_with_const_CvString(const CvString& b);static void AfterCvPreGame_setBandwidth_with_const_CvString(const CvString& b);static void ReplaceCvPreGame_setBandwidth_with_const_CvString(void (*original)(const CvString&), const CvString& b);CivRegisterBefore<CivHooks::CvPreGame_setBandwidth_with_const_CvString>(host, &BeforeCvPreGame_setBandwidth_with_const_CvString);CivRegisterAfter<CivHooks::CvPreGame_setBandwidth_with_const_CvString>(host, &AfterCvPreGame_setBandwidth_with_const_CvString);CivRegisterReplace<CivHooks::CvPreGame_setBandwidth_with_const_CvString>(host, &ReplaceCvPreGame_setBandwidth_with_const_CvString);

Code

2307void setBandwidth(const CvString& b)2308{2309	if(b== "modem")2310	{2311		setBandwidth(BANDWIDTH_MODEM);2312	}2313	else if(b== "broadband")2314	{2315		setBandwidth(BANDWIDTH_BROADBAND);2316	}2317	else2318	{2319		setBandwidth(BANDWIDTH_MODEM);2320	}2321}

Calls

Called by