Bazaar developer reference

CvGlobals::UnwrapPlotPointer(ICvPlot1 *)

Defined in
CvGlobals.cpp, line 2333
Class
CvGlobals
Hook name
CivHooks::CvGlobals_UnwrapPlotPointer

Hooks

static bool BeforeCvGlobals_UnwrapPlotPointer(CvGlobals* self, ICvPlot1* pPlot, CvPlot*& result);static void AfterCvGlobals_UnwrapPlotPointer(CvGlobals* self, ICvPlot1* pPlot, CvPlot*& result);static CvPlot* ReplaceCvGlobals_UnwrapPlotPointer(CvPlot* (*original)(CvGlobals*, ICvPlot1*), CvGlobals* self, ICvPlot1* pPlot);CivRegisterBefore<CivHooks::CvGlobals_UnwrapPlotPointer>(host, &BeforeCvGlobals_UnwrapPlotPointer);CivRegisterAfter<CivHooks::CvGlobals_UnwrapPlotPointer>(host, &AfterCvGlobals_UnwrapPlotPointer);CivRegisterReplace<CivHooks::CvGlobals_UnwrapPlotPointer>(host, &ReplaceCvGlobals_UnwrapPlotPointer);

Code

2333CvPlot* CvGlobals::UnwrapPlotPointer(ICvPlot1* pPlot)2334{2335	return (NULL != pPlot)? static_cast<CvDllPlot*>(pPlot)->GetInstance() : NULL;2336}

Calls

Called by