Bazaar developer reference

CvLuaCity::lIsWorldWondersMaxed(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 801
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsWorldWondersMaxed

Hooks

static bool BeforeCvLuaCity_lIsWorldWondersMaxed(lua_State* L, int& result);static void AfterCvLuaCity_lIsWorldWondersMaxed(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsWorldWondersMaxed(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsWorldWondersMaxed>(host, &BeforeCvLuaCity_lIsWorldWondersMaxed);CivRegisterAfter<CivHooks::CvLuaCity_lIsWorldWondersMaxed>(host, &AfterCvLuaCity_lIsWorldWondersMaxed);CivRegisterReplace<CivHooks::CvLuaCity_lIsWorldWondersMaxed>(host, &ReplaceCvLuaCity_lIsWorldWondersMaxed);

Code

800//bool isWorldWondersMaxed();801int CvLuaCity::lIsWorldWondersMaxed(lua_State* L)802{803	CvCity* pkCity = GetInstance(L);804	const bool bResult = pkCity->isWorldWondersMaxed();805806	lua_pushboolean(L, bResult);807	return 1;808}

Calls

Called by