Bazaar developer reference

CvDllPlayerOptionInfo::GetInstance()

Defined in
CvDllPlayerOptionInfo.cpp, line 75
Class
CvDllPlayerOptionInfo
Hook name
CivHooks::CvDllPlayerOptionInfo_GetInstance

Hooks

static bool BeforeCvDllPlayerOptionInfo_GetInstance(CvDllPlayerOptionInfo* self, CvPlayerOptionInfo*& result);static void AfterCvDllPlayerOptionInfo_GetInstance(CvDllPlayerOptionInfo* self, CvPlayerOptionInfo*& result);static CvPlayerOptionInfo* ReplaceCvDllPlayerOptionInfo_GetInstance(CvPlayerOptionInfo* (*original)(CvDllPlayerOptionInfo*), CvDllPlayerOptionInfo* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayerOptionInfo_GetInstance::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayerOptionInfo_GetInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayerOptionInfo_GetInstance::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayerOptionInfo_GetInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayerOptionInfo_GetInstance::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayerOptionInfo_GetInstance);

Code

75CvPlayerOptionInfo* CvDllPlayerOptionInfo::GetInstance()76{77	return m_pPlayerOptionInfo;78}