Bazaar developer reference

operator<<(FDataStream &, const CvGameReligions &)

Defined in
CvReligionClasses.cpp, line 2859
Hook name
CivHooks::op_shl_with_FDataStream_const_CvGameReligions

Hooks

static bool Beforeop_shl_with_FDataStream_const_CvGameReligions(FDataStream& saveTo, const CvGameReligions& readFrom, FDataStream*& result);static void Afterop_shl_with_FDataStream_const_CvGameReligions(FDataStream& saveTo, const CvGameReligions& readFrom, FDataStream*& result);static FDataStream& Replaceop_shl_with_FDataStream_const_CvGameReligions(FDataStream& (*original)(FDataStream&, const CvGameReligions&), FDataStream& saveTo, const CvGameReligions& readFrom);CivRegisterBefore<CivHooks::op_shl_with_FDataStream_const_CvGameReligions>(host, &Beforeop_shl_with_FDataStream_const_CvGameReligions);CivRegisterAfter<CivHooks::op_shl_with_FDataStream_const_CvGameReligions>(host, &Afterop_shl_with_FDataStream_const_CvGameReligions);CivRegisterReplace<CivHooks::op_shl_with_FDataStream_const_CvGameReligions>(host, &Replaceop_shl_with_FDataStream_const_CvGameReligions);

Code

2858/// Serialization write2859FDataStream& operator<<(FDataStream& saveTo, const CvGameReligions& readFrom)2860{2861	uint uiVersion = 4;2862	saveTo << uiVersion;2863	MOD_SERIALIZE_INIT_WRITE(saveTo);28642865	saveTo << readFrom.GetMinimumFaithNextPantheon();28662867	ReligionList::const_iterator it;2868	saveTo << readFrom.m_CurrentReligions.size();2869	for(it = readFrom.m_CurrentReligions.begin(); it != readFrom.m_CurrentReligions.end(); it++)2870	{2871		saveTo << *it;2872	}28732874	return saveTo;2875}

Calls

Called by