Bazaar developer reference

CvLuaUnit::lIsGoldenAge(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2218
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsGoldenAge

Hooks

static bool BeforeCvLuaUnit_lIsGoldenAge(lua_State* L, int& result);static void AfterCvLuaUnit_lIsGoldenAge(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsGoldenAge(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsGoldenAge>(host, &BeforeCvLuaUnit_lIsGoldenAge);CivRegisterAfter<CivHooks::CvLuaUnit_lIsGoldenAge>(host, &AfterCvLuaUnit_lIsGoldenAge);CivRegisterReplace<CivHooks::CvLuaUnit_lIsGoldenAge>(host, &ReplaceCvLuaUnit_lIsGoldenAge);

Code

2217//bool isGoldenAge();2218int CvLuaUnit::lIsGoldenAge(lua_State* L)2219{2220	CvUnit* pkUnit = GetInstance(L);2221	const bool bResult = pkUnit->isGoldenAge();22222223	lua_pushboolean(L, bResult);2224	return 1;2225}

Calls

Called by