Bazaar developer reference

CvLuaUnit::lIsStackedGreatGeneral(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 4646
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsStackedGreatGeneral

Hooks

static bool BeforeCvLuaUnit_lIsStackedGreatGeneral(lua_State* L, int& result);static void AfterCvLuaUnit_lIsStackedGreatGeneral(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsStackedGreatGeneral(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsStackedGreatGeneral>(host, &BeforeCvLuaUnit_lIsStackedGreatGeneral);CivRegisterAfter<CivHooks::CvLuaUnit_lIsStackedGreatGeneral>(host, &AfterCvLuaUnit_lIsStackedGreatGeneral);CivRegisterReplace<CivHooks::CvLuaUnit_lIsStackedGreatGeneral>(host, &ReplaceCvLuaUnit_lIsStackedGreatGeneral);

Code

4645//bool IsStackedGreatGeneral();4646int CvLuaUnit::lIsStackedGreatGeneral(lua_State* L)4647{4648	CvUnit* pkUnit = GetInstance(L);46494650	const bool bResult = pkUnit->IsStackedGreatGeneral();4651	lua_pushboolean(L, bResult);4652	return 1;4653}

Calls

Called by