Bazaar developer reference

CvPlayer::SetHasAdoptedStateReligion(bool)

Defined in
CvPlayer.cpp, line 27175
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetHasAdoptedStateReligion

Hooks

static bool BeforeCvPlayer_SetHasAdoptedStateReligion(CvPlayer* self, bool bValue);static void AfterCvPlayer_SetHasAdoptedStateReligion(CvPlayer* self, bool bValue);static void ReplaceCvPlayer_SetHasAdoptedStateReligion(void (*original)(CvPlayer*, bool), CvPlayer* self, bool bValue);CivRegisterBefore<CivHooks::CvPlayer_SetHasAdoptedStateReligion>(host, &BeforeCvPlayer_SetHasAdoptedStateReligion);CivRegisterAfter<CivHooks::CvPlayer_SetHasAdoptedStateReligion>(host, &AfterCvPlayer_SetHasAdoptedStateReligion);CivRegisterReplace<CivHooks::CvPlayer_SetHasAdoptedStateReligion>(host, &ReplaceCvPlayer_SetHasAdoptedStateReligion);

Code

27174/// Sets this player picked up a Religion yet27175void CvPlayer::SetHasAdoptedStateReligion(bool bValue)27176{27177	if(m_bHasAdoptedStateReligion != bValue)27178	{27179		m_bHasAdoptedStateReligion = bValue;27180	}27181}

Calls