operator<<(FDataStream &, const CvNotifications::Notification &)
- Defined in
- CvNotifications.cpp, line 197
- Hook name
CivHooks::op_shl_with_FDataStream_const_CvNotifications_Notification
Hooks
static bool Beforeop_shl_with_FDataStream_const_CvNotifications_Notification(FDataStream& saveTo, const CvNotifications::Notification& readFrom, FDataStream*& result);static void Afterop_shl_with_FDataStream_const_CvNotifications_Notification(FDataStream& saveTo, const CvNotifications::Notification& readFrom, FDataStream*& result);static FDataStream& Replaceop_shl_with_FDataStream_const_CvNotifications_Notification(FDataStream& (*original)(FDataStream&, const CvNotifications::Notification&), FDataStream& saveTo, const CvNotifications::Notification& readFrom);CivRegisterBefore<CivHooks::op_shl_with_FDataStream_const_CvNotifications_Notification>(host, &Beforeop_shl_with_FDataStream_const_CvNotifications_Notification);CivRegisterAfter<CivHooks::op_shl_with_FDataStream_const_CvNotifications_Notification>(host, &Afterop_shl_with_FDataStream_const_CvNotifications_Notification);CivRegisterReplace<CivHooks::op_shl_with_FDataStream_const_CvNotifications_Notification>(host, &Replaceop_shl_with_FDataStream_const_CvNotifications_Notification);
Code
196/// Serialization write197FDataStream& operator<<(FDataStream& saveTo, const CvNotifications::Notification& readFrom)198{199 saveTo << readFrom.m_eNotificationType;200 saveTo << readFrom.m_strMessage;201 saveTo << readFrom.m_strSummary;202 saveTo << readFrom.m_iX;203 saveTo << readFrom.m_iY;204 saveTo << readFrom.m_iGameDataIndex;205 saveTo << readFrom.m_iExtraGameData;206 saveTo << readFrom.m_iTurn;207 saveTo << readFrom.m_iLookupIndex;208 saveTo << readFrom.m_bDismissed;209 saveTo << readFrom.m_ePlayerID;210 // this is not saved because we want to re-broadcast on load211 // saveTo << writeTo.m_bBroadcast;212 // Not saving this either213 // saveTo << readFrom.m_bWaitExtraTurn;214215 MOD_SERIALIZE_INIT_WRITE(saveTo);216217 return saveTo;218}
Calls
FDataStream::operator<<FDataStream::operator<<FDataStream::operator<<FDataStream::operator<<operator<<operator<<