Bazaar developer reference

CvPlot::ClearArchaeologicalRecord()

Defined in
CvPlot.cpp, line 11811
Class
CvPlot
Hook name
CivHooks::CvPlot_ClearArchaeologicalRecord

Hooks

static bool BeforeCvPlot_ClearArchaeologicalRecord(CvPlot* self);static void AfterCvPlot_ClearArchaeologicalRecord(CvPlot* self);static void ReplaceCvPlot_ClearArchaeologicalRecord(void (*original)(CvPlot*), CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_ClearArchaeologicalRecord>(host, &BeforeCvPlot_ClearArchaeologicalRecord);CivRegisterAfter<CivHooks::CvPlot_ClearArchaeologicalRecord>(host, &AfterCvPlot_ClearArchaeologicalRecord);CivRegisterReplace<CivHooks::CvPlot_ClearArchaeologicalRecord>(host, &ReplaceCvPlot_ClearArchaeologicalRecord);

Code

11811void CvPlot::ClearArchaeologicalRecord()11812{11813	m_kArchaeologyData.m_eArtifactType = NO_GREAT_WORK_ARTIFACT_CLASS;11814	m_kArchaeologyData.m_ePlayer1 = NO_PLAYER;11815	m_kArchaeologyData.m_ePlayer2 = NO_PLAYER;11816	m_kArchaeologyData.m_eEra = NO_ERA;11817}

Called by