Bazaar developer reference

operator<<(FDataStream &, const CvGameLeagues &)

Defined in
CvVotingClasses.cpp, line 7478
Hook name
CivHooks::op_shl_with_FDataStream_const_CvGameLeagues

Hooks

static bool Beforeop_shl_with_FDataStream_const_CvGameLeagues(FDataStream& saveTo, const CvGameLeagues& readFrom, FDataStream*& result);static void Afterop_shl_with_FDataStream_const_CvGameLeagues(FDataStream& saveTo, const CvGameLeagues& readFrom, FDataStream*& result);static FDataStream& Replaceop_shl_with_FDataStream_const_CvGameLeagues(FDataStream& (*original)(FDataStream&, const CvGameLeagues&), FDataStream& saveTo, const CvGameLeagues& readFrom);CivRegisterBefore<CivHooks::op_shl_with_FDataStream_const_CvGameLeagues>(host, &Beforeop_shl_with_FDataStream_const_CvGameLeagues);CivRegisterAfter<CivHooks::op_shl_with_FDataStream_const_CvGameLeagues>(host, &Afterop_shl_with_FDataStream_const_CvGameLeagues);CivRegisterReplace<CivHooks::op_shl_with_FDataStream_const_CvGameLeagues>(host, &Replaceop_shl_with_FDataStream_const_CvGameLeagues);

Code

7477// Serialization Write7478FDataStream& operator<<(FDataStream& saveTo, const CvGameLeagues& readFrom)7479{7480	uint uiVersion = 5;7481	7482	saveTo << uiVersion;7483	MOD_SERIALIZE_INIT_WRITE(saveTo);7484	saveTo << readFrom.m_iGeneratedIDCount;7485	saveTo << readFrom.m_vActiveLeagues.size();7486	for (uint iLeague = 0; iLeague < readFrom.m_vActiveLeagues.size(); iLeague++)7487	{7488		saveTo << readFrom.m_vActiveLeagues[iLeague];7489	}7490	saveTo << readFrom.m_iNumLeaguesEverFounded;7491	saveTo << readFrom.m_eDiplomaticVictor;7492	saveTo << readFrom.m_eLastEraTrigger;7493	7494	return saveTo;7495}

Calls

Called by