Bazaar developer reference

CvPlayerCulture::SetSwappableArtifactIndex(int)

Defined in
CvCultureClasses.cpp, line 2018
Class
CvPlayerCulture
Hook name
CivHooks::CvPlayerCulture_SetSwappableArtifactIndex

Hooks

static bool BeforeCvPlayerCulture_SetSwappableArtifactIndex(CvPlayerCulture* self, int iIndex);static void AfterCvPlayerCulture_SetSwappableArtifactIndex(CvPlayerCulture* self, int iIndex);static void ReplaceCvPlayerCulture_SetSwappableArtifactIndex(void (*original)(CvPlayerCulture*, int), CvPlayerCulture* self, int iIndex);CivRegisterBefore<CivHooks::CvPlayerCulture_SetSwappableArtifactIndex>(host, &BeforeCvPlayerCulture_SetSwappableArtifactIndex);CivRegisterAfter<CivHooks::CvPlayerCulture_SetSwappableArtifactIndex>(host, &AfterCvPlayerCulture_SetSwappableArtifactIndex);CivRegisterReplace<CivHooks::CvPlayerCulture_SetSwappableArtifactIndex>(host, &ReplaceCvPlayerCulture_SetSwappableArtifactIndex);

Code

2018void CvPlayerCulture::SetSwappableArtifactIndex (int iIndex)2019{2020	m_iSwappableArtifactIndex = iIndex;2021}

Called by