Bazaar developer reference

CvLuaCity::lAdoptReligionFully(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2641
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lAdoptReligionFully

Hooks

static bool BeforeCvLuaCity_lAdoptReligionFully(lua_State* L, int& result);static void AfterCvLuaCity_lAdoptReligionFully(lua_State* L, int& result);static int ReplaceCvLuaCity_lAdoptReligionFully(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lAdoptReligionFully>(host, &BeforeCvLuaCity_lAdoptReligionFully);CivRegisterAfter<CivHooks::CvLuaCity_lAdoptReligionFully>(host, &AfterCvLuaCity_lAdoptReligionFully);CivRegisterReplace<CivHooks::CvLuaCity_lAdoptReligionFully>(host, &ReplaceCvLuaCity_lAdoptReligionFully);

Code

2640//int AdoptReligionFully() const;2641int CvLuaCity::lAdoptReligionFully(lua_State* L)2642{2643	CvCity* pkCity = GetInstance(L);2644	ReligionTypes eReligion = (ReligionTypes)lua_tointeger(L, 2);2645	pkCity->GetCityReligions()->AdoptReligionFully(eReligion);2646	return 1;2647}

Calls

Called by