Bazaar developer reference

CvLuaUnit::lIsNukeImmune(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 3148
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsNukeImmune

Hooks

static bool BeforeCvLuaUnit_lIsNukeImmune(lua_State* L, int& result);static void AfterCvLuaUnit_lIsNukeImmune(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsNukeImmune(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsNukeImmune>(host, &BeforeCvLuaUnit_lIsNukeImmune);CivRegisterAfter<CivHooks::CvLuaUnit_lIsNukeImmune>(host, &AfterCvLuaUnit_lIsNukeImmune);CivRegisterReplace<CivHooks::CvLuaUnit_lIsNukeImmune>(host, &ReplaceCvLuaUnit_lIsNukeImmune);

Code

3147//bool isNukeImmune();3148int CvLuaUnit::lIsNukeImmune(lua_State* L)3149{3150	CvUnit* pkUnit = GetInstance(L);3151	const bool bResult = pkUnit->isNukeImmune();31523153	lua_pushboolean(L, bResult);3154	return 1;3155}

Calls

Called by