CvLuaUnit::lIsFound(lua_State *)
- Defined in
- Lua/CvLuaUnit.cpp, line 2186
- Class
- CvLuaUnit
- Hook name
CivHooks::CvLuaUnit_lIsFound
Hooks
static bool BeforeCvLuaUnit_lIsFound(lua_State* L, int& result);static void AfterCvLuaUnit_lIsFound(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsFound(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsFound>(host, &BeforeCvLuaUnit_lIsFound);CivRegisterAfter<CivHooks::CvLuaUnit_lIsFound>(host, &AfterCvLuaUnit_lIsFound);CivRegisterReplace<CivHooks::CvLuaUnit_lIsFound>(host, &ReplaceCvLuaUnit_lIsFound);
Code
2185//bool isFound();2186int CvLuaUnit::lIsFound(lua_State* L)2187{2188 CvUnit* pkUnit = GetInstance(L);2189 const bool bResult = pkUnit->isFound();21902191 lua_pushboolean(L, bResult);2192 return 1;2193}
Calls
CvLuaScopedInstance::GetInstance- CvUnit::isFound() const
lua_pushboolean