Bazaar developer reference

CvPreGame::getTurnNotifyEmailAddress(PlayerTypes)

Defined in
CvPreGame.cpp, line 1294
Hook name
CivHooks::CvPreGame_getTurnNotifyEmailAddress

Hooks

static bool BeforeCvPreGame_getTurnNotifyEmailAddress(PlayerTypes p, const CvString*& result);static void AfterCvPreGame_getTurnNotifyEmailAddress(PlayerTypes p, const CvString*& result);static const CvString& ReplaceCvPreGame_getTurnNotifyEmailAddress(const CvString& (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_getTurnNotifyEmailAddress>(host, &BeforeCvPreGame_getTurnNotifyEmailAddress);CivRegisterAfter<CivHooks::CvPreGame_getTurnNotifyEmailAddress>(host, &AfterCvPreGame_getTurnNotifyEmailAddress);CivRegisterReplace<CivHooks::CvPreGame_getTurnNotifyEmailAddress>(host, &ReplaceCvPreGame_getTurnNotifyEmailAddress);

Code

1294const CvString& getTurnNotifyEmailAddress(PlayerTypes p)1295{1296	if(p >= 0 && p < MAX_PLAYERS)1297	{1298		return s_turnNotifyEmailAddress[p];1299	}13001301	static const CvString empty = "";1302	return empty;1303}

Calls

Called by