CvLuaPlayer::lGetBeliefInPantheon(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 2924
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetBeliefInPantheon
Hooks
static bool BeforeCvLuaPlayer_lGetBeliefInPantheon(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetBeliefInPantheon(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetBeliefInPantheon(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetBeliefInPantheon>(host, &BeforeCvLuaPlayer_lGetBeliefInPantheon);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetBeliefInPantheon>(host, &AfterCvLuaPlayer_lGetBeliefInPantheon);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetBeliefInPantheon>(host, &ReplaceCvLuaPlayer_lGetBeliefInPantheon);
Code
2923//bool GetBeliefInPantheon();2924int CvLuaPlayer::lGetBeliefInPantheon(lua_State* L)2925{2926 CvPlayerAI* pkPlayer = GetInstance(L);29272928 const BeliefTypes eBelief = GC.getGame().GetGameReligions()->GetBeliefInPantheon(pkPlayer->GetID());2929 lua_pushinteger(L, eBelief);29302931 return 1;2932}
Calls
- CvGame::GetGameReligions()
- CvGameReligions::GetBeliefInPantheon(PlayerTypes) const
- CvGlobals::getGame()
CvLuaScopedInstance::GetInstance- CvPlayer::GetID() const
lua_pushinteger