Bazaar developer reference

operator>>(FDataStream &, DeclarationLogData &)

Defined in
CvDiplomacyAI.cpp, line 28426
Hook name
CivHooks::op_shr_with_FDataStream_DeclarationLogData

Hooks

static bool Beforeop_shr_with_FDataStream_DeclarationLogData(FDataStream& loadFrom, DeclarationLogData& writeTo, FDataStream*& result);static void Afterop_shr_with_FDataStream_DeclarationLogData(FDataStream& loadFrom, DeclarationLogData& writeTo, FDataStream*& result);static FDataStream& Replaceop_shr_with_FDataStream_DeclarationLogData(FDataStream& (*original)(FDataStream&, DeclarationLogData&), FDataStream& loadFrom, DeclarationLogData& writeTo);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::op_shr_with_FDataStream_DeclarationLogData::ID, CIV_HOOK_BEFORE, (void*)&Beforeop_shr_with_FDataStream_DeclarationLogData);host->RegisterHook(host->pluginIndex, CivHooks::op_shr_with_FDataStream_DeclarationLogData::ID, CIV_HOOK_AFTER, (void*)&Afterop_shr_with_FDataStream_DeclarationLogData);host->RegisterHook(host->pluginIndex, CivHooks::op_shr_with_FDataStream_DeclarationLogData::ID, CIV_HOOK_REPLACE, (void*)&Replaceop_shr_with_FDataStream_DeclarationLogData);

Code

28426FDataStream& operator>>(FDataStream& loadFrom, DeclarationLogData& writeTo)28427{28428	loadFrom >> writeTo.m_eDeclaration;28429	loadFrom >> writeTo.m_iData1;28430	loadFrom >> writeTo.m_iData2;28431	loadFrom >> writeTo.m_eMustHaveMetPlayer;28432	loadFrom >> writeTo.m_bActive;28433	loadFrom >> writeTo.m_iTurn;28434	return loadFrom;28435}

Calls