Bazaar developer reference

CvDllGameContext::CreateNetInitInfo()

Defined in
CvDllContext.cpp, line 1172
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_CreateNetInitInfo

Hooks

static bool BeforeCvDllGameContext_CreateNetInitInfo(CvDllGameContext* self, unsigned int& result);static void AfterCvDllGameContext_CreateNetInitInfo(CvDllGameContext* self, unsigned int& result);static unsigned int ReplaceCvDllGameContext_CreateNetInitInfo(unsigned int (*original)(CvDllGameContext*), CvDllGameContext* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_CreateNetInitInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_CreateNetInitInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_CreateNetInitInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_CreateNetInitInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_CreateNetInitInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_CreateNetInitInfo);

Code

1172unsigned int CvDllGameContext::CreateNetInitInfo()1173{1174	uint index = m_uiNetInitInfoCounter++;1175	std::pair<uint, CvDllNetInitInfo*> entry(index, new CvDllNetInitInfo());11761177	m_NetInitInfos.push_back(entry);1178	return index;1179}

Calls