Bazaar developer reference

CvLuaUnit::lIsRangedSupportFire(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 5330
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsRangedSupportFire

Hooks

static bool BeforeCvLuaUnit_lIsRangedSupportFire(lua_State* L, int& result);static void AfterCvLuaUnit_lIsRangedSupportFire(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsRangedSupportFire(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsRangedSupportFire>(host, &BeforeCvLuaUnit_lIsRangedSupportFire);CivRegisterAfter<CivHooks::CvLuaUnit_lIsRangedSupportFire>(host, &AfterCvLuaUnit_lIsRangedSupportFire);CivRegisterReplace<CivHooks::CvLuaUnit_lIsRangedSupportFire>(host, &ReplaceCvLuaUnit_lIsRangedSupportFire);

Code

5329//bool IsRangedSupportFire();5330int CvLuaUnit::lIsRangedSupportFire(lua_State* L)5331{5332	CvUnit* pkUnit = GetInstance(L);5333	const bool bResult = pkUnit->isRangedSupportFire();53345335	lua_pushboolean(L, bResult);5336	return 1;5337}

Calls

Called by