Bazaar developer reference

CvDllPlayerColorInfo::QueryInterface(GUID)

Defined in
CvDllPlayerColorInfo.cpp, line 23
Class
CvDllPlayerColorInfo
Hook name
CivHooks::CvDllPlayerColorInfo_QueryInterface

Hooks

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

Code

23void* CvDllPlayerColorInfo::QueryInterface(GUID guidInterface)24{25	if(guidInterface == ICvUnknown::GetInterfaceId() ||26	        guidInterface == ICvPlayerColorInfo1::GetInterfaceId())27	{28		IncrementReference();29		return this;30	}3132	return NULL;33}

Calls