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