CvLuaUnit::lIsAutomated(lua_State *)
- Defined in
- Lua/CvLuaUnit.cpp, line 2770
- Class
- CvLuaUnit
- Hook name
CivHooks::CvLuaUnit_lIsAutomated
Hooks
static bool BeforeCvLuaUnit_lIsAutomated(lua_State* L, int& result);static void AfterCvLuaUnit_lIsAutomated(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsAutomated(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsAutomated>(host, &BeforeCvLuaUnit_lIsAutomated);CivRegisterAfter<CivHooks::CvLuaUnit_lIsAutomated>(host, &AfterCvLuaUnit_lIsAutomated);CivRegisterReplace<CivHooks::CvLuaUnit_lIsAutomated>(host, &ReplaceCvLuaUnit_lIsAutomated);
Code
2769//bool isAutomated();2770int CvLuaUnit::lIsAutomated(lua_State* L)2771{2772 CvUnit* pkUnit = GetInstance(L);2773 const bool bResult = pkUnit->IsAutomated();27742775 lua_pushboolean(L, bResult);2776 return 1;2777}
Calls
CvLuaScopedInstance::GetInstance- CvUnit::IsAutomated() const
lua_pushboolean