Bazaar developer reference

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

Defined in
CvDllScriptSystemUtility.cpp, line 98
Class
CvDllScriptSystemUtility
Hook name
CivHooks::CvDllScriptSystemUtility_GetCvDealInstance

Hooks

static bool BeforeCvDllScriptSystemUtility_GetCvDealInstance(CvDllScriptSystemUtility* self, lua_State* L, int index, bool bErrorOnFail, ICvDeal1*& result);static void AfterCvDllScriptSystemUtility_GetCvDealInstance(CvDllScriptSystemUtility* self, lua_State* L, int index, bool bErrorOnFail, ICvDeal1*& result);static ICvDeal1* ReplaceCvDllScriptSystemUtility_GetCvDealInstance(ICvDeal1* (*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_GetCvDealInstance::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllScriptSystemUtility_GetCvDealInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_GetCvDealInstance::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllScriptSystemUtility_GetCvDealInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_GetCvDealInstance::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllScriptSystemUtility_GetCvDealInstance);

Code

98ICvDeal1* CvDllScriptSystemUtility::GetCvDealInstance(lua_State* L, int index, bool bErrorOnFail)99{100	CvDeal* pkDeal = CvLuaDeal::GetInstance(L, index, bErrorOnFail);101	return (NULL != pkDeal)? new CvDllDeal(pkDeal) : NULL;102}

Calls