Bazaar developer reference

CvDllNetMessageHandler::ResponseIgnoreWarning(PlayerTypes, TeamTypes)

Defined in
CvDllNetMessageHandler.cpp, line 123
Class
CvDllNetMessageHandler
Hook name
CivHooks::CvDllNetMessageHandler_ResponseIgnoreWarning

Hooks

static bool BeforeCvDllNetMessageHandler_ResponseIgnoreWarning(CvDllNetMessageHandler* self, PlayerTypes ePlayer, TeamTypes eRivalTeam);static void AfterCvDllNetMessageHandler_ResponseIgnoreWarning(CvDllNetMessageHandler* self, PlayerTypes ePlayer, TeamTypes eRivalTeam);static void ReplaceCvDllNetMessageHandler_ResponseIgnoreWarning(void (*original)(CvDllNetMessageHandler*, PlayerTypes, TeamTypes), CvDllNetMessageHandler* self, PlayerTypes ePlayer, TeamTypes eRivalTeam);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponseIgnoreWarning::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllNetMessageHandler_ResponseIgnoreWarning);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponseIgnoreWarning::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllNetMessageHandler_ResponseIgnoreWarning);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponseIgnoreWarning::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllNetMessageHandler_ResponseIgnoreWarning);

Code

123void CvDllNetMessageHandler::ResponseIgnoreWarning(PlayerTypes ePlayer, TeamTypes eRivalTeam)124{125	CvPlayerAI& kPlayer = GET_PLAYER(ePlayer);126	CvTeam& kTeam = GET_TEAM(kPlayer.getTeam());127	const TeamTypes eTeam = kPlayer.getTeam();128	FAssert(eTeam != eRivalTeam);129	130	kTeam.PushIgnoreWarning(eRivalTeam);131}

Calls