Bazaar developer reference

CvNotifications::Write(FDataStream &) const

Defined in
CvNotifications.cpp, line 300
Class
CvNotifications
Hook name
CivHooks::CvNotifications_Write

Hooks

static bool BeforeCvNotifications_Write(const CvNotifications* self, FDataStream& kStream);static void AfterCvNotifications_Write(const CvNotifications* self, FDataStream& kStream);static void ReplaceCvNotifications_Write(void (*original)(const CvNotifications*, FDataStream&), const CvNotifications* self, FDataStream& kStream);CivRegisterBefore<CivHooks::CvNotifications_Write>(host, &BeforeCvNotifications_Write);CivRegisterAfter<CivHooks::CvNotifications_Write>(host, &AfterCvNotifications_Write);CivRegisterReplace<CivHooks::CvNotifications_Write>(host, &ReplaceCvNotifications_Write);

Code

299/// Serialization write300void CvNotifications::Write(FDataStream& kStream) const301{302	// Current version number303	uint uiVersion = 2;304	kStream << uiVersion;305	MOD_SERIALIZE_INIT_WRITE(kStream);306307	// need to serialize notification list308	kStream << m_ePlayer;309	kStream << m_iCurrentLookupIndex;310	kStream << m_iNotificationsBeginIndex;311	kStream << m_iNotificationsEndIndex;312313	for(uint ui = 0; ui < MAX_NOTIFICATIONS; ui++)314	{315		kStream << m_aNotifications[ui];316	}317}

Calls

Called by