CvLuaPlot::lIsRevealed(lua_State *)
- Defined in
- Lua/CvLuaPlot.cpp, line 1788
- Class
- CvLuaPlot
- Hook name
CivHooks::CvLuaPlot_lIsRevealed
Hooks
static bool BeforeCvLuaPlot_lIsRevealed(lua_State* L, int& result);static void AfterCvLuaPlot_lIsRevealed(lua_State* L, int& result);static int ReplaceCvLuaPlot_lIsRevealed(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lIsRevealed>(host, &BeforeCvLuaPlot_lIsRevealed);CivRegisterAfter<CivHooks::CvLuaPlot_lIsRevealed>(host, &AfterCvLuaPlot_lIsRevealed);CivRegisterReplace<CivHooks::CvLuaPlot_lIsRevealed>(host, &ReplaceCvLuaPlot_lIsRevealed);
Code
1787//bool isRevealed(TeamTypes eTeam, bool bDebug);1788int CvLuaPlot::lIsRevealed(lua_State* L)1789{1790 CvPlot* pkPlot = GetInstance(L);1791 const TeamTypes eTeam = (TeamTypes)lua_tointeger(L, 2);1792 const bool bDebug = luaL_optbool(L, 3, false);17931794 if (!bDebug)1795 lua_pushboolean(L, pkPlot->isRevealed(eTeam));1796 else1797 lua_pushboolean(L, pkPlot->isRevealed(eTeam, true));17981799 return 1;1800}
Calls
CvLuaScopedInstance::GetInstance- CvPlot::isRevealed(TeamTypes) const
- CvPlot::isRevealed(TeamTypes, bool) const
lua_pushbooleanlua_tointeger- luaL_optbool(lua_State *, int, bool)