Bazaar developer reference

CvLuaUnit::lIsIgnoreGreatGeneralBenefit(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 4656
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsIgnoreGreatGeneralBenefit

Hooks

static bool BeforeCvLuaUnit_lIsIgnoreGreatGeneralBenefit(lua_State* L, int& result);static void AfterCvLuaUnit_lIsIgnoreGreatGeneralBenefit(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsIgnoreGreatGeneralBenefit(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsIgnoreGreatGeneralBenefit>(host, &BeforeCvLuaUnit_lIsIgnoreGreatGeneralBenefit);CivRegisterAfter<CivHooks::CvLuaUnit_lIsIgnoreGreatGeneralBenefit>(host, &AfterCvLuaUnit_lIsIgnoreGreatGeneralBenefit);CivRegisterReplace<CivHooks::CvLuaUnit_lIsIgnoreGreatGeneralBenefit>(host, &ReplaceCvLuaUnit_lIsIgnoreGreatGeneralBenefit);

Code

4655//bool IsIgnoresGreatGeneralBenefit();4656int CvLuaUnit::lIsIgnoreGreatGeneralBenefit(lua_State* L)4657{4658	CvUnit* pkUnit = GetInstance(L);46594660	const bool bResult = pkUnit->IsIgnoreGreatGeneralBenefit();4661	lua_pushboolean(L, bResult);4662	return 1;4663}

Calls

Called by