Bazaar developer reference

CvPreGame::setMapScriptName(const CvString &)

Defined in
CvPreGame.cpp, line 2761
Hook name
CivHooks::CvPreGame_setMapScriptName

Hooks

static bool BeforeCvPreGame_setMapScriptName(const CvString& s);static void AfterCvPreGame_setMapScriptName(const CvString& s);static void ReplaceCvPreGame_setMapScriptName(void (*original)(const CvString&), const CvString& s);CivRegisterBefore<CivHooks::CvPreGame_setMapScriptName>(host, &BeforeCvPreGame_setMapScriptName);CivRegisterAfter<CivHooks::CvPreGame_setMapScriptName>(host, &AfterCvPreGame_setMapScriptName);CivRegisterReplace<CivHooks::CvPreGame_setMapScriptName>(host, &ReplaceCvPreGame_setMapScriptName);

Code

2761void setMapScriptName(const CvString& s)2762{2763	if(s_mapScriptName.get() != s)2764	{2765		s_mapScriptName = s;2766		ResetMapOptions();2767	}2768}

Calls

Called by