CvLuaLeague::lGetContributionTierThreshold(lua_State *)
- Defined in
- Lua/CvLuaLeague.cpp, line 678
- Class
- CvLuaLeague
- Hook name
CivHooks::CvLuaLeague_lGetContributionTierThreshold
Hooks
static bool BeforeCvLuaLeague_lGetContributionTierThreshold(lua_State* L, int& result);static void AfterCvLuaLeague_lGetContributionTierThreshold(lua_State* L, int& result);static int ReplaceCvLuaLeague_lGetContributionTierThreshold(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lGetContributionTierThreshold>(host, &BeforeCvLuaLeague_lGetContributionTierThreshold);CivRegisterAfter<CivHooks::CvLuaLeague_lGetContributionTierThreshold>(host, &AfterCvLuaLeague_lGetContributionTierThreshold);CivRegisterReplace<CivHooks::CvLuaLeague_lGetContributionTierThreshold>(host, &ReplaceCvLuaLeague_lGetContributionTierThreshold);
Code
677//int GetContributionTierThreshold(int iTier, LeagueProjectTypes eLeagueProject);678int CvLuaLeague::lGetContributionTierThreshold(lua_State* L)679{680 CvLeague* pLeague = GetInstance(L);681 const CvLeague::ContributionTier eTier = (CvLeague::ContributionTier) lua_tointeger(L, 2);682 const LeagueProjectTypes eLeagueProject = (LeagueProjectTypes) lua_tointeger(L, 3);683684 float fValue = pLeague->GetContributionTierThreshold(eTier, eLeagueProject);685 const int iValue = (int) fValue;686 lua_pushinteger(L, iValue);687 return 1;688}
Calls
- CvLeague::GetContributionTierThreshold(ContributionTier, LeagueProjectTypes)
CvLuaScopedInstance::GetInstancelua_pushintegerlua_tointeger