CvLuaLeague::lIsHostMember(lua_State *)
- Defined in
- Lua/CvLuaLeague.cpp, line 505
- Class
- CvLuaLeague
- Hook name
CivHooks::CvLuaLeague_lIsHostMember
Hooks
static bool BeforeCvLuaLeague_lIsHostMember(lua_State* L, int& result);static void AfterCvLuaLeague_lIsHostMember(lua_State* L, int& result);static int ReplaceCvLuaLeague_lIsHostMember(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lIsHostMember>(host, &BeforeCvLuaLeague_lIsHostMember);CivRegisterAfter<CivHooks::CvLuaLeague_lIsHostMember>(host, &AfterCvLuaLeague_lIsHostMember);CivRegisterReplace<CivHooks::CvLuaLeague_lIsHostMember>(host, &ReplaceCvLuaLeague_lIsHostMember);
Code
504//bool IsHostMember(PlayerTypes ePlayer);505int CvLuaLeague::lIsHostMember(lua_State* L)506{507 CvLeague* pLeague = GetInstance(L);508 const PlayerTypes ePlayer = (PlayerTypes) lua_tointeger(L, 2);509510 const bool bValue = pLeague->IsHostMember(ePlayer);511 lua_pushboolean(L, bValue);512 return 1;513}
Calls
- CvLeague::IsHostMember(PlayerTypes) const
CvLuaScopedInstance::GetInstancelua_pushbooleanlua_tointeger