Bazaar developer reference

CvLuaGame::lFoundPantheon(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2552
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lFoundPantheon

Hooks

static bool BeforeCvLuaGame_lFoundPantheon(lua_State* L, int& result);static void AfterCvLuaGame_lFoundPantheon(lua_State* L, int& result);static int ReplaceCvLuaGame_lFoundPantheon(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lFoundPantheon>(host, &BeforeCvLuaGame_lFoundPantheon);CivRegisterAfter<CivHooks::CvLuaGame_lFoundPantheon>(host, &AfterCvLuaGame_lFoundPantheon);CivRegisterReplace<CivHooks::CvLuaGame_lFoundPantheon>(host, &ReplaceCvLuaGame_lFoundPantheon);

Code

2552int CvLuaGame::lFoundPantheon(lua_State* L)2553{2554	const PlayerTypes ePlayer = static_cast<PlayerTypes>(luaL_checkint(L, 1));2555	const BeliefTypes eBelief = static_cast<BeliefTypes>(luaL_checkint(L, 2));25562557	GC.getGame().GetGameReligions()->FoundPantheon(ePlayer, eBelief);25582559	return 0;2560}

Calls

Called by