Hooks
static bool BeforeCvTeam_makePeace(CvTeam* self, TeamTypes eTeam, bool bBumpUnits, bool bSuppressNotification, PlayerTypes eOriginatingPlayer);static void AfterCvTeam_makePeace(CvTeam* self, TeamTypes eTeam, bool bBumpUnits, bool bSuppressNotification, PlayerTypes eOriginatingPlayer);static void ReplaceCvTeam_makePeace(void (*original)(CvTeam*, TeamTypes, bool, bool, PlayerTypes), CvTeam* self, TeamTypes eTeam, bool bBumpUnits, bool bSuppressNotification, PlayerTypes eOriginatingPlayer);CivRegisterBefore<CivHooks::CvTeam_makePeace>(host, &BeforeCvTeam_makePeace);CivRegisterAfter<CivHooks::CvTeam_makePeace>(host, &AfterCvTeam_makePeace);CivRegisterReplace<CivHooks::CvTeam_makePeace>(host, &ReplaceCvTeam_makePeace);
Code
1573#if defined(MOD_EVENTS_WAR_AND_PEACE)1574void CvTeam::makePeace(TeamTypes eTeam, bool bBumpUnits, bool bSuppressNotification, PlayerTypes eOriginatingPlayer)1575#else1576void CvTeam::makePeace(TeamTypes eTeam, bool bBumpUnits, bool bSuppressNotification)1577#endif1578{1579#if defined(MOD_EVENTS_WAR_AND_PEACE)1580 DoMakePeace(eOriginatingPlayer, true, eTeam, bBumpUnits, bSuppressNotification);1581#else1582 DoMakePeace(eTeam, bBumpUnits, bSuppressNotification);1583#endif1584}