Bazaar developer reference

CvLuaCity::lGetSecondaryReligionPantheonBelief(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2609
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetSecondaryReligionPantheonBelief

Hooks

static bool BeforeCvLuaCity_lGetSecondaryReligionPantheonBelief(lua_State* L, int& result);static void AfterCvLuaCity_lGetSecondaryReligionPantheonBelief(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetSecondaryReligionPantheonBelief(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetSecondaryReligionPantheonBelief>(host, &BeforeCvLuaCity_lGetSecondaryReligionPantheonBelief);CivRegisterAfter<CivHooks::CvLuaCity_lGetSecondaryReligionPantheonBelief>(host, &AfterCvLuaCity_lGetSecondaryReligionPantheonBelief);CivRegisterReplace<CivHooks::CvLuaCity_lGetSecondaryReligionPantheonBelief>(host, &ReplaceCvLuaCity_lGetSecondaryReligionPantheonBelief);

Code

2608//int GetSecondaryReligionPantheonBelief() const;2609int CvLuaCity::lGetSecondaryReligionPantheonBelief(lua_State* L)2610{2611	CvCity* pkCity = GetInstance(L);2612	const int iResult = (int)pkCity->GetCityReligions()->GetSecondaryReligionPantheonBelief();2613	lua_pushinteger(L, iResult);2614	return 1;2615}

Calls

Called by