Bazaar developer reference

CvDllScriptSystemUtility::GetCvPlotInstance(lua_State *, int, bool)

Defined in
CvDllScriptSystemUtility.cpp, line 117
Class
CvDllScriptSystemUtility
Hook name
CivHooks::CvDllScriptSystemUtility_GetCvPlotInstance

Hooks

static bool BeforeCvDllScriptSystemUtility_GetCvPlotInstance(CvDllScriptSystemUtility* self, lua_State* L, int index, bool bErrorOnFail, ICvPlot1*& result);static void AfterCvDllScriptSystemUtility_GetCvPlotInstance(CvDllScriptSystemUtility* self, lua_State* L, int index, bool bErrorOnFail, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllScriptSystemUtility_GetCvPlotInstance(ICvPlot1* (*original)(CvDllScriptSystemUtility*, lua_State*, int, bool), CvDllScriptSystemUtility* self, lua_State* L, int index, bool bErrorOnFail);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_GetCvPlotInstance::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllScriptSystemUtility_GetCvPlotInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_GetCvPlotInstance::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllScriptSystemUtility_GetCvPlotInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_GetCvPlotInstance::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllScriptSystemUtility_GetCvPlotInstance);

Code

117ICvPlot1* CvDllScriptSystemUtility::GetCvPlotInstance(lua_State* L, int index, bool bErrorOnFail)118{119	CvPlot* pkPlot = CvLuaPlot::GetInstance(L, index, bErrorOnFail);120	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;121}

Calls