CvLuaLeague::lIsProposed(lua_State *)
- Defined in
- Lua/CvLuaLeague.cpp, line 229
- Class
- CvLuaLeague
- Hook name
CivHooks::CvLuaLeague_lIsProposed
Hooks
static bool BeforeCvLuaLeague_lIsProposed(lua_State* L, int& result);static void AfterCvLuaLeague_lIsProposed(lua_State* L, int& result);static int ReplaceCvLuaLeague_lIsProposed(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lIsProposed>(host, &BeforeCvLuaLeague_lIsProposed);CivRegisterAfter<CivHooks::CvLuaLeague_lIsProposed>(host, &AfterCvLuaLeague_lIsProposed);CivRegisterReplace<CivHooks::CvLuaLeague_lIsProposed>(host, &ReplaceCvLuaLeague_lIsProposed);
Code
228//bool IsProposed(int iResolutionID, bool bRepeal);229int CvLuaLeague::lIsProposed(lua_State* L)230{231 CvLeague* pLeague = GetInstance(L);232 const int iResolutionID = lua_tointeger(L, 2);233 const bool bRepeal = lua_toboolean(L, 3);234235 const bool bValue = pLeague->IsProposed(iResolutionID, bRepeal);236 lua_pushboolean(L, bValue);237 return 1;238}
Calls
- CvLeague::IsProposed(int, bool, bool)
CvLuaScopedInstance::GetInstancelua_pushbooleanlua_tobooleanlua_tointeger