CvLuaUnit::lIsCargo(lua_State *)
- Defined in
- Lua/CvLuaUnit.cpp, line 4763
- Class
- CvLuaUnit
- Hook name
CivHooks::CvLuaUnit_lIsCargo
Hooks
static bool BeforeCvLuaUnit_lIsCargo(lua_State* L, int& result);static void AfterCvLuaUnit_lIsCargo(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsCargo(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsCargo>(host, &BeforeCvLuaUnit_lIsCargo);CivRegisterAfter<CivHooks::CvLuaUnit_lIsCargo>(host, &AfterCvLuaUnit_lIsCargo);CivRegisterReplace<CivHooks::CvLuaUnit_lIsCargo>(host, &ReplaceCvLuaUnit_lIsCargo);
Code
4762//bool isCargo();4763int CvLuaUnit::lIsCargo(lua_State* L)4764{4765 CvUnit* pkUnit = GetInstance(L);4766 const bool bResult = pkUnit->isCargo();47674768 lua_pushboolean(L, bResult);4769 return 1;4770}
Calls
CvLuaScopedInstance::GetInstance- CvUnit::isCargo() const
lua_pushboolean