Bazaar developer reference

CvLuaUnit::lIsNoCapture(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2166
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsNoCapture

Hooks

static bool BeforeCvLuaUnit_lIsNoCapture(lua_State* L, int& result);static void AfterCvLuaUnit_lIsNoCapture(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsNoCapture(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsNoCapture>(host, &BeforeCvLuaUnit_lIsNoCapture);CivRegisterAfter<CivHooks::CvLuaUnit_lIsNoCapture>(host, &AfterCvLuaUnit_lIsNoCapture);CivRegisterReplace<CivHooks::CvLuaUnit_lIsNoCapture>(host, &ReplaceCvLuaUnit_lIsNoCapture);

Code

2165//bool isNoCapture();2166int CvLuaUnit::lIsNoCapture(lua_State* L)2167{2168	CvUnit* pkUnit = GetInstance(L);2169	const bool bResult = pkUnit->isNoCapture();21702171	lua_pushboolean(L, bResult);2172	return 1;2173}

Calls

Called by