Bazaar developer reference

operator<<(FDataStream &, const CvResolutionDecision::PlayerVote &)

Defined in
CvVotingClasses.cpp, line 520
Hook name
CivHooks::op_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote

Hooks

static bool Beforeop_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote(FDataStream& saveTo, const CvResolutionDecision::PlayerVote& readFrom, FDataStream*& result);static void Afterop_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote(FDataStream& saveTo, const CvResolutionDecision::PlayerVote& readFrom, FDataStream*& result);static FDataStream& Replaceop_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote(FDataStream& (*original)(FDataStream&, const CvResolutionDecision::PlayerVote&), FDataStream& saveTo, const CvResolutionDecision::PlayerVote& readFrom);CivRegisterBefore<CivHooks::op_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote>(host, &Beforeop_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote);CivRegisterAfter<CivHooks::op_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote>(host, &Afterop_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote);CivRegisterReplace<CivHooks::op_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote>(host, &Replaceop_shl_with_FDataStream_const_CvResolutionDecision_PlayerVote);

Code

519// Serialization Write520FDataStream& operator<<(FDataStream& saveTo, const CvResolutionDecision::PlayerVote& readFrom)521{522	uint uiVersion = 1;523524	saveTo << uiVersion;525	MOD_SERIALIZE_INIT_WRITE(saveTo);526	saveTo << readFrom.ePlayer;527	saveTo << readFrom.iNumVotes;528	saveTo << readFrom.iChoice;529530	return saveTo;531}

Calls

Called by