Bazaar developer reference

CvLuaUnit::lIsFortifyable(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2790
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsFortifyable

Hooks

static bool BeforeCvLuaUnit_lIsFortifyable(lua_State* L, int& result);static void AfterCvLuaUnit_lIsFortifyable(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsFortifyable(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsFortifyable>(host, &BeforeCvLuaUnit_lIsFortifyable);CivRegisterAfter<CivHooks::CvLuaUnit_lIsFortifyable>(host, &AfterCvLuaUnit_lIsFortifyable);CivRegisterReplace<CivHooks::CvLuaUnit_lIsFortifyable>(host, &ReplaceCvLuaUnit_lIsFortifyable);

Code

2789//bool isFortifyable();2790int CvLuaUnit::lIsFortifyable(lua_State* L)2791{2792	CvUnit* pkUnit = GetInstance(L);2793	const bool bResult = pkUnit->isFortifyable();27942795	lua_pushboolean(L, bResult);2796	return 1;2797}

Calls

Called by