Bazaar developer reference

operator<<(FDataStream &, const DiploLogData &)

Defined in
CvDiplomacyAI.cpp, line 28401
Hook name
CivHooks::op_shl_with_FDataStream_const_DiploLogData

Hooks

static bool Beforeop_shl_with_FDataStream_const_DiploLogData(FDataStream& saveTo, const DiploLogData& readFrom, FDataStream*& result);static void Afterop_shl_with_FDataStream_const_DiploLogData(FDataStream& saveTo, const DiploLogData& readFrom, FDataStream*& result);static FDataStream& Replaceop_shl_with_FDataStream_const_DiploLogData(FDataStream& (*original)(FDataStream&, const DiploLogData&), FDataStream& saveTo, const DiploLogData& readFrom);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::op_shl_with_FDataStream_const_DiploLogData::ID, CIV_HOOK_BEFORE, (void*)&Beforeop_shl_with_FDataStream_const_DiploLogData);host->RegisterHook(host->pluginIndex, CivHooks::op_shl_with_FDataStream_const_DiploLogData::ID, CIV_HOOK_AFTER, (void*)&Afterop_shl_with_FDataStream_const_DiploLogData);host->RegisterHook(host->pluginIndex, CivHooks::op_shl_with_FDataStream_const_DiploLogData::ID, CIV_HOOK_REPLACE, (void*)&Replaceop_shl_with_FDataStream_const_DiploLogData);

Code

28401FDataStream& operator<<(FDataStream& saveTo, const DiploLogData& readFrom)28402{28403	saveTo << readFrom.m_eDiploLogStatement;28404	saveTo << readFrom.m_iTurn;28405	return saveTo;28406}

Calls