Bazaar developer reference

CvDllWorldInfo::GetDefaultPlayers()

Defined in
CvDllWorldInfo.cpp, line 91
Class
CvDllWorldInfo
Hook name
CivHooks::CvDllWorldInfo_GetDefaultPlayers

Hooks

static bool BeforeCvDllWorldInfo_GetDefaultPlayers(CvDllWorldInfo* self, int& result);static void AfterCvDllWorldInfo_GetDefaultPlayers(CvDllWorldInfo* self, int& result);static int ReplaceCvDllWorldInfo_GetDefaultPlayers(int (*original)(CvDllWorldInfo*), CvDllWorldInfo* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllWorldInfo_GetDefaultPlayers::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllWorldInfo_GetDefaultPlayers);host->RegisterHook(host->pluginIndex, CivHooks::CvDllWorldInfo_GetDefaultPlayers::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllWorldInfo_GetDefaultPlayers);host->RegisterHook(host->pluginIndex, CivHooks::CvDllWorldInfo_GetDefaultPlayers::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllWorldInfo_GetDefaultPlayers);

Code

91int CvDllWorldInfo::GetDefaultPlayers()92{93	return m_pWorldInfo->getDefaultPlayers();94}

Calls