Bazaar developer reference

CvDllWorldInfo::QueryInterface(GUID)

Defined in
CvDllWorldInfo.cpp, line 24
Class
CvDllWorldInfo
Hook name
CivHooks::CvDllWorldInfo_QueryInterface

Hooks

static bool BeforeCvDllWorldInfo_QueryInterface(CvDllWorldInfo* self, GUID guidInterface, void*& result);static void AfterCvDllWorldInfo_QueryInterface(CvDllWorldInfo* self, GUID guidInterface, void*& result);static void* ReplaceCvDllWorldInfo_QueryInterface(void* (*original)(CvDllWorldInfo*, GUID), CvDllWorldInfo* self, GUID guidInterface);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllWorldInfo_QueryInterface::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllWorldInfo_QueryInterface);host->RegisterHook(host->pluginIndex, CivHooks::CvDllWorldInfo_QueryInterface::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllWorldInfo_QueryInterface);host->RegisterHook(host->pluginIndex, CivHooks::CvDllWorldInfo_QueryInterface::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllWorldInfo_QueryInterface);

Code

24void* CvDllWorldInfo::QueryInterface(GUID guidInterface)25{26	if(guidInterface == ICvUnknown::GetInterfaceId() ||27	        guidInterface == ICvWorldInfo1::GetInterfaceId())28	{29		IncrementReference();30		return this;31	}3233	return NULL;34}

Calls