Hooks
static bool BeforeCvUnit_CanUpgradeRightNow(const CvUnit* self, bool bOnlyTestVisible, bool& result);static void AfterCvUnit_CanUpgradeRightNow(const CvUnit* self, bool bOnlyTestVisible, bool& result);static bool ReplaceCvUnit_CanUpgradeRightNow(bool (*original)(const CvUnit*, bool), const CvUnit* self, bool bOnlyTestVisible);CivRegisterBefore<CivHooks::CvUnit_CanUpgradeRightNow>(host, &BeforeCvUnit_CanUpgradeRightNow);CivRegisterAfter<CivHooks::CvUnit_CanUpgradeRightNow>(host, &AfterCvUnit_CanUpgradeRightNow);CivRegisterReplace<CivHooks::CvUnit_CanUpgradeRightNow>(host, &ReplaceCvUnit_CanUpgradeRightNow);