Bazaar developer reference

CvLuaUnit::lIsRanged(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2889
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsRanged

Hooks

static bool BeforeCvLuaUnit_lIsRanged(lua_State* L, int& result);static void AfterCvLuaUnit_lIsRanged(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsRanged(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsRanged>(host, &BeforeCvLuaUnit_lIsRanged);CivRegisterAfter<CivHooks::CvLuaUnit_lIsRanged>(host, &AfterCvLuaUnit_lIsRanged);CivRegisterReplace<CivHooks::CvLuaUnit_lIsRanged>(host, &ReplaceCvLuaUnit_lIsRanged);

Code

2888//bool isRanged();2889int CvLuaUnit::lIsRanged(lua_State* L)2890{2891	CvUnit* pkUnit = GetInstance(L);2892	const bool bResult = pkUnit->isRanged();28932894	lua_pushboolean(L, bResult);2895	return 1;2896}

Calls

Called by