Bazaar developer reference

CvDllPlayer::GetPlotDanger(ICvPlot1 *) const

Defined in
CvDllPlayer.cpp, line 309
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetPlotDanger

Hooks

static bool BeforeCvDllPlayer_GetPlotDanger(const CvDllPlayer* self, ICvPlot1* pPlot, int& result);static void AfterCvDllPlayer_GetPlotDanger(const CvDllPlayer* self, ICvPlot1* pPlot, int& result);static int ReplaceCvDllPlayer_GetPlotDanger(int (*original)(const CvDllPlayer*, ICvPlot1*), const CvDllPlayer* self, ICvPlot1* pPlot);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetPlotDanger::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetPlotDanger);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetPlotDanger::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetPlotDanger);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetPlotDanger::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetPlotDanger);

Code

309int CvDllPlayer::GetPlotDanger(ICvPlot1* pPlot) const310{311	CvDllPlot* pDllPlot = static_cast<CvDllPlot*>(pPlot);312	CvPlot& kPlot = (*pDllPlot->GetInstance());313	return m_pPlayer->GetPlotDanger(kPlot);314}

Calls