Bazaar developer reference

operator>>(FDataStream &, CvNotifications::Notification &)

Defined in
CvNotifications.cpp, line 175
Hook name
CivHooks::op_shr_with_FDataStream_CvNotifications_Notification

Hooks

static bool Beforeop_shr_with_FDataStream_CvNotifications_Notification(FDataStream& loadFrom, CvNotifications::Notification& writeTo, FDataStream*& result);static void Afterop_shr_with_FDataStream_CvNotifications_Notification(FDataStream& loadFrom, CvNotifications::Notification& writeTo, FDataStream*& result);static FDataStream& Replaceop_shr_with_FDataStream_CvNotifications_Notification(FDataStream& (*original)(FDataStream&, CvNotifications::Notification&), FDataStream& loadFrom, CvNotifications::Notification& writeTo);CivRegisterBefore<CivHooks::op_shr_with_FDataStream_CvNotifications_Notification>(host, &Beforeop_shr_with_FDataStream_CvNotifications_Notification);CivRegisterAfter<CivHooks::op_shr_with_FDataStream_CvNotifications_Notification>(host, &Afterop_shr_with_FDataStream_CvNotifications_Notification);CivRegisterReplace<CivHooks::op_shr_with_FDataStream_CvNotifications_Notification>(host, &Replaceop_shr_with_FDataStream_CvNotifications_Notification);

Code

174/// Serialization read175FDataStream& operator>>(FDataStream& loadFrom, CvNotifications::Notification& writeTo)176{177	loadFrom >> writeTo.m_eNotificationType;178	loadFrom >> writeTo.m_strMessage;179	loadFrom >> writeTo.m_strSummary;180	loadFrom >> writeTo.m_iX;181	loadFrom >> writeTo.m_iY;182	loadFrom >> writeTo.m_iGameDataIndex;183	loadFrom >> writeTo.m_iExtraGameData;184	loadFrom >> writeTo.m_iTurn;185	loadFrom >> writeTo.m_iLookupIndex;186	loadFrom >> writeTo.m_bDismissed;187	loadFrom >> writeTo.m_ePlayerID;188	writeTo.m_bNeedsBroadcast = true; // all loads should re-broadcast their events189	writeTo.m_bWaitExtraTurn = false; // not saving this190191	MOD_SERIALIZE_INIT_READ(loadFrom);192193	return loadFrom;194}

Calls

Called by