Bazaar developer reference

CvDllUnit::Destroy()

Defined in
CvDllUnit.cpp, line 64
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_Destroy

Hooks

static bool BeforeCvDllUnit_Destroy(CvDllUnit* self);static void AfterCvDllUnit_Destroy(CvDllUnit* self);static void ReplaceCvDllUnit_Destroy(void (*original)(CvDllUnit*), CvDllUnit* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_Destroy::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_Destroy);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_Destroy::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_Destroy);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_Destroy::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_Destroy);

Code

64void CvDllUnit::Destroy()65{66	DecrementReference();67}

Calls