Hooks
static bool BeforeCvEconomicAI_StartSaveForPurchase(CvEconomicAI* self, PurchaseType ePurchase, int iAmount, int iPriority);static void AfterCvEconomicAI_StartSaveForPurchase(CvEconomicAI* self, PurchaseType ePurchase, int iAmount, int iPriority);static void ReplaceCvEconomicAI_StartSaveForPurchase(void (*original)(CvEconomicAI*, PurchaseType, int, int), CvEconomicAI* self, PurchaseType ePurchase, int iAmount, int iPriority);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvEconomicAI_StartSaveForPurchase::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvEconomicAI_StartSaveForPurchase);host->RegisterHook(host->pluginIndex, CivHooks::CvEconomicAI_StartSaveForPurchase::ID, CIV_HOOK_AFTER, (void*)&AfterCvEconomicAI_StartSaveForPurchase);host->RegisterHook(host->pluginIndex, CivHooks::CvEconomicAI_StartSaveForPurchase::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvEconomicAI_StartSaveForPurchase);