Bazaar developer reference

CvLuaCity::lIsNationalWondersMaxed(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 821
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsNationalWondersMaxed

Hooks

static bool BeforeCvLuaCity_lIsNationalWondersMaxed(lua_State* L, int& result);static void AfterCvLuaCity_lIsNationalWondersMaxed(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsNationalWondersMaxed(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsNationalWondersMaxed>(host, &BeforeCvLuaCity_lIsNationalWondersMaxed);CivRegisterAfter<CivHooks::CvLuaCity_lIsNationalWondersMaxed>(host, &AfterCvLuaCity_lIsNationalWondersMaxed);CivRegisterReplace<CivHooks::CvLuaCity_lIsNationalWondersMaxed>(host, &ReplaceCvLuaCity_lIsNationalWondersMaxed);

Code

820//bool isNationalWondersMaxed();821int CvLuaCity::lIsNationalWondersMaxed(lua_State* L)822{823	CvCity* pkCity = GetInstance(L);824	const bool bResult = pkCity->isNationalWondersMaxed();825826	lua_pushboolean(L, bResult);827	return 1;828}

Calls

Called by