CvGoodyHuts::Read(FDataStream &, uint)
- Defined in
- CvGoodyHuts.cpp, line 108
- Class
- CvGoodyHuts
- Hook name
CivHooks::CvGoodyHuts_Read
Hooks
static bool BeforeCvGoodyHuts_Read(FDataStream& kStream, uint uiParentVersion);static void AfterCvGoodyHuts_Read(FDataStream& kStream, uint uiParentVersion);static void ReplaceCvGoodyHuts_Read(void (*original)(FDataStream&, uint), FDataStream& kStream, uint uiParentVersion);CivRegisterBefore<CivHooks::CvGoodyHuts_Read>(host, &BeforeCvGoodyHuts_Read);CivRegisterAfter<CivHooks::CvGoodyHuts_Read>(host, &AfterCvGoodyHuts_Read);CivRegisterReplace<CivHooks::CvGoodyHuts_Read>(host, &ReplaceCvGoodyHuts_Read);
Code
108void CvGoodyHuts::Read(FDataStream& kStream, uint uiParentVersion)109{110 Reset();111112 uint uiVersion;113 kStream >> uiVersion;114 MOD_SERIALIZE_INIT_READ(kStream);115116 for (int iI = 0; iI < MAX_MAJOR_CIVS; iI++)117 {118 kStream >> ArrayWrapper<int>(NUM_GOODIES_REMEMBERED, m_aaiPlayerGoodyHutResults[iI]);119 }120}
Calls
ArrayWrapper::ArrayWrapper- CvGoodyHuts::Reset()
FDataStream::operator>>