Bazaar developer reference

CvLuaUnit::lSetMadeInterception(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 4501
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lSetMadeInterception

Hooks

static bool BeforeCvLuaUnit_lSetMadeInterception(lua_State* L, int& result);static void AfterCvLuaUnit_lSetMadeInterception(lua_State* L, int& result);static int ReplaceCvLuaUnit_lSetMadeInterception(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lSetMadeInterception>(host, &BeforeCvLuaUnit_lSetMadeInterception);CivRegisterAfter<CivHooks::CvLuaUnit_lSetMadeInterception>(host, &AfterCvLuaUnit_lSetMadeInterception);CivRegisterReplace<CivHooks::CvLuaUnit_lSetMadeInterception>(host, &ReplaceCvLuaUnit_lSetMadeInterception);

Code

4500//void setMadeInterception(bool bNewValue);4501int CvLuaUnit::lSetMadeInterception(lua_State* L)4502{4503	CvUnit* pkUnit = GetInstance(L);4504	const bool bNewValue = lua_toboolean(L, 2);45054506	pkUnit->setMadeInterception(bNewValue);4507	return 0;4508}

Calls

Called by