Bazaar developer reference

CvGoodyHuts::Write(FDataStream &)

Defined in
CvGoodyHuts.cpp, line 123
Class
CvGoodyHuts
Hook name
CivHooks::CvGoodyHuts_Write

Hooks

static bool BeforeCvGoodyHuts_Write(FDataStream& kStream);static void AfterCvGoodyHuts_Write(FDataStream& kStream);static void ReplaceCvGoodyHuts_Write(void (*original)(FDataStream&), FDataStream& kStream);CivRegisterBefore<CivHooks::CvGoodyHuts_Write>(host, &BeforeCvGoodyHuts_Write);CivRegisterAfter<CivHooks::CvGoodyHuts_Write>(host, &AfterCvGoodyHuts_Write);CivRegisterReplace<CivHooks::CvGoodyHuts_Write>(host, &ReplaceCvGoodyHuts_Write);

Code

123void CvGoodyHuts::Write(FDataStream& kStream)124{125	// Current version number126	uint uiVersion = 1;127	kStream << uiVersion;128	MOD_SERIALIZE_INIT_WRITE(kStream);129130	for (int iI = 0; iI < MAX_MAJOR_CIVS; iI++)131	{132		kStream << ArrayWrapper<int>(NUM_GOODIES_REMEMBERED, m_aaiPlayerGoodyHutResults[iI]);133	}134}

Calls

Called by