Bazaar developer reference

CvDllScriptSystemUtility::PushCvDealInstance(lua_State *, ICvDeal1 *)

Defined in
CvDllScriptSystemUtility.cpp, line 85
Class
CvDllScriptSystemUtility
Hook name
CivHooks::CvDllScriptSystemUtility_PushCvDealInstance

Hooks

static bool BeforeCvDllScriptSystemUtility_PushCvDealInstance(CvDllScriptSystemUtility* self, lua_State* L, ICvDeal1* pkDeal);static void AfterCvDllScriptSystemUtility_PushCvDealInstance(CvDllScriptSystemUtility* self, lua_State* L, ICvDeal1* pkDeal);static void ReplaceCvDllScriptSystemUtility_PushCvDealInstance(void (*original)(CvDllScriptSystemUtility*, lua_State*, ICvDeal1*), CvDllScriptSystemUtility* self, lua_State* L, ICvDeal1* pkDeal);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_PushCvDealInstance::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllScriptSystemUtility_PushCvDealInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_PushCvDealInstance::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllScriptSystemUtility_PushCvDealInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllScriptSystemUtility_PushCvDealInstance::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllScriptSystemUtility_PushCvDealInstance);

Code

85void CvDllScriptSystemUtility::PushCvDealInstance(lua_State* L, ICvDeal1* pkDeal)86{87	if(NULL != L && NULL != pkDeal)88	{89		CvDllDeal* pkDllDeal = static_cast<CvDllDeal*>(pkDeal);90		CvLuaDeal::Push(L, pkDllDeal->GetInstance());91	}92	else93	{94		lua_pushnil(L);95	}96}

Calls