Bazaar developer reference

CvLuaGame::lGetMinimumFaithNextPantheon(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2237
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetMinimumFaithNextPantheon

Hooks

static bool BeforeCvLuaGame_lGetMinimumFaithNextPantheon(lua_State* L, int& result);static void AfterCvLuaGame_lGetMinimumFaithNextPantheon(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetMinimumFaithNextPantheon(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetMinimumFaithNextPantheon>(host, &BeforeCvLuaGame_lGetMinimumFaithNextPantheon);CivRegisterAfter<CivHooks::CvLuaGame_lGetMinimumFaithNextPantheon>(host, &AfterCvLuaGame_lGetMinimumFaithNextPantheon);CivRegisterReplace<CivHooks::CvLuaGame_lGetMinimumFaithNextPantheon>(host, &ReplaceCvLuaGame_lGetMinimumFaithNextPantheon);

Code

2237int CvLuaGame::lGetMinimumFaithNextPantheon(lua_State* L)2238{2239	int iFaith = GC.getGame().GetGameReligions()->GetMinimumFaithNextPantheon();2240	lua_pushinteger(L, iFaith);2241	return 1;2242}

Calls

Called by