CvLuaLeague::lCanPropose(lua_State *)
- Defined in
- Lua/CvLuaLeague.cpp, line 483
- Class
- CvLuaLeague
- Hook name
CivHooks::CvLuaLeague_lCanPropose
Hooks
static bool BeforeCvLuaLeague_lCanPropose(lua_State* L, int& result);static void AfterCvLuaLeague_lCanPropose(lua_State* L, int& result);static int ReplaceCvLuaLeague_lCanPropose(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lCanPropose>(host, &BeforeCvLuaLeague_lCanPropose);CivRegisterAfter<CivHooks::CvLuaLeague_lCanPropose>(host, &AfterCvLuaLeague_lCanPropose);CivRegisterReplace<CivHooks::CvLuaLeague_lCanPropose>(host, &ReplaceCvLuaLeague_lCanPropose);
Code
482//bool CanPropose(PlayerTypes ePlayer);483int CvLuaLeague::lCanPropose(lua_State* L)484{485 CvLeague* pLeague = GetInstance(L);486 const PlayerTypes ePlayer = (PlayerTypes) lua_tointeger(L, 2);487488 const bool bValue = pLeague->CanPropose(ePlayer);489 lua_pushboolean(L, bValue);490 return 1;491}
Calls
- CvLeague::CanPropose(PlayerTypes)
CvLuaScopedInstance::GetInstancelua_pushbooleanlua_tointeger