Hooks
static bool BeforeCvDllDealAI_DecrementReference(CvDllDealAI* self, unsigned int& result);static void AfterCvDllDealAI_DecrementReference(CvDllDealAI* self, unsigned int& result);static unsigned int ReplaceCvDllDealAI_DecrementReference(unsigned int (*original)(CvDllDealAI*), CvDllDealAI* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DecrementReference::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDealAI_DecrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DecrementReference::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDealAI_DecrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DecrementReference::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDealAI_DecrementReference);