Bazaar developer reference

CvPlayerReligions::GetReligionCreatedByPlayer(bool) const

Defined in
CvReligionClasses.cpp, line 3065
Class
CvPlayerReligions
Hook name
CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer

Hooks

static bool BeforeCvPlayerReligions_GetReligionCreatedByPlayer(const CvPlayerReligions* self, bool bIncludePantheon, ReligionTypes& result);static void AfterCvPlayerReligions_GetReligionCreatedByPlayer(const CvPlayerReligions* self, bool bIncludePantheon, ReligionTypes& result);static ReligionTypes ReplaceCvPlayerReligions_GetReligionCreatedByPlayer(ReligionTypes (*original)(const CvPlayerReligions*, bool), const CvPlayerReligions* self, bool bIncludePantheon);CivRegisterBefore<CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer>(host, &BeforeCvPlayerReligions_GetReligionCreatedByPlayer);CivRegisterAfter<CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer>(host, &AfterCvPlayerReligions_GetReligionCreatedByPlayer);CivRegisterReplace<CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer>(host, &ReplaceCvPlayerReligions_GetReligionCreatedByPlayer);

Code

3064/// Get the religion this player created3065ReligionTypes CvPlayerReligions::GetReligionCreatedByPlayer(bool bIncludePantheon) const3066{3067#if defined(MOD_API_EXTENSIONS)3068	if (bIncludePantheon) {3069		if (!HasCreatedReligion() && HasCreatedPantheon()) {3070			return RELIGION_PANTHEON;3071		}3072	}3073#endif30743075	return GC.getGame().GetGameReligions()->GetReligionCreatedByPlayer(m_pPlayer->GetID());3076}

Calls

Called by