Bazaar developer reference

CvLuaPlayer::lHasCreatedPantheon(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2913
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lHasCreatedPantheon

Hooks

static bool BeforeCvLuaPlayer_lHasCreatedPantheon(lua_State* L, int& result);static void AfterCvLuaPlayer_lHasCreatedPantheon(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lHasCreatedPantheon(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lHasCreatedPantheon>(host, &BeforeCvLuaPlayer_lHasCreatedPantheon);CivRegisterAfter<CivHooks::CvLuaPlayer_lHasCreatedPantheon>(host, &AfterCvLuaPlayer_lHasCreatedPantheon);CivRegisterReplace<CivHooks::CvLuaPlayer_lHasCreatedPantheon>(host, &ReplaceCvLuaPlayer_lHasCreatedPantheon);

Code

2912//bool HasCreatedPantheon();2913int CvLuaPlayer::lHasCreatedPantheon(lua_State* L)2914{2915	CvPlayerAI* pkPlayer = GetInstance(L);29162917	const bool bResult = pkPlayer->GetReligions()->HasCreatedPantheon();2918	lua_pushboolean(L, bResult);29192920	return 1;2921}

Calls

Called by