Bazaar developer reference

CvLuaUnit::lGetExtraIntercept(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 4181
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lGetExtraIntercept

Hooks

static bool BeforeCvLuaUnit_lGetExtraIntercept(lua_State* L, int& result);static void AfterCvLuaUnit_lGetExtraIntercept(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetExtraIntercept(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetExtraIntercept>(host, &BeforeCvLuaUnit_lGetExtraIntercept);CivRegisterAfter<CivHooks::CvLuaUnit_lGetExtraIntercept>(host, &AfterCvLuaUnit_lGetExtraIntercept);CivRegisterReplace<CivHooks::CvLuaUnit_lGetExtraIntercept>(host, &ReplaceCvLuaUnit_lGetExtraIntercept);

Code

4180//int getExtraIntercept();4181int CvLuaUnit::lGetExtraIntercept(lua_State* L)4182{4183	CvUnit* pkUnit = GetInstance(L);41844185	const int iResult = pkUnit->getExtraIntercept();4186	lua_pushinteger(L, iResult);4187	return 1;4188}

Calls

Called by