Bazaar developer reference

CvLuaUnit::lIsDelayedDeath(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2358
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsDelayedDeath

Hooks

static bool BeforeCvLuaUnit_lIsDelayedDeath(lua_State* L, int& result);static void AfterCvLuaUnit_lIsDelayedDeath(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsDelayedDeath(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsDelayedDeath>(host, &BeforeCvLuaUnit_lIsDelayedDeath);CivRegisterAfter<CivHooks::CvLuaUnit_lIsDelayedDeath>(host, &AfterCvLuaUnit_lIsDelayedDeath);CivRegisterReplace<CivHooks::CvLuaUnit_lIsDelayedDeath>(host, &ReplaceCvLuaUnit_lIsDelayedDeath);

Code

2357//bool isDelayedDeath();2358int CvLuaUnit::lIsDelayedDeath(lua_State* L)2359{2360	CvUnit* pkUnit = GetInstance(L);2361	const bool bResult = pkUnit->isDelayedDeath();23622363	lua_pushboolean(L, bResult);2364	return 1;2365}

Calls

Called by