Hooks
static bool BeforeCvLuaUnit_lGetUpgradeDiscount(lua_State* L, int& result);static void AfterCvLuaUnit_lGetUpgradeDiscount(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetUpgradeDiscount(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetUpgradeDiscount>(host, &BeforeCvLuaUnit_lGetUpgradeDiscount);CivRegisterAfter<CivHooks::CvLuaUnit_lGetUpgradeDiscount>(host, &AfterCvLuaUnit_lGetUpgradeDiscount);CivRegisterReplace<CivHooks::CvLuaUnit_lGetUpgradeDiscount>(host, &ReplaceCvLuaUnit_lGetUpgradeDiscount);