Bazaar developer reference

CvPreGame::multiplayerOptionEnabled(MultiplayerOptionTypes)

Defined in
CvPreGame.cpp, line 1604
Hook name
CivHooks::CvPreGame_multiplayerOptionEnabled

Hooks

static bool BeforeCvPreGame_multiplayerOptionEnabled(MultiplayerOptionTypes o, bool& result);static void AfterCvPreGame_multiplayerOptionEnabled(MultiplayerOptionTypes o, bool& result);static bool ReplaceCvPreGame_multiplayerOptionEnabled(bool (*original)(MultiplayerOptionTypes), MultiplayerOptionTypes o);CivRegisterBefore<CivHooks::CvPreGame_multiplayerOptionEnabled>(host, &BeforeCvPreGame_multiplayerOptionEnabled);CivRegisterAfter<CivHooks::CvPreGame_multiplayerOptionEnabled>(host, &AfterCvPreGame_multiplayerOptionEnabled);CivRegisterReplace<CivHooks::CvPreGame_multiplayerOptionEnabled>(host, &ReplaceCvPreGame_multiplayerOptionEnabled);

Code

1604bool multiplayerOptionEnabled(MultiplayerOptionTypes o)1605{1606	if(o < NUM_MPOPTION_TYPES)1607		return s_multiplayerOptions[o];1608	return false;1609}

Calls

Called by