Bazaar developer reference

CvUnit::unload()

Defined in
CvUnit.cpp, line 4518
Class
CvUnit
Hook name
CivHooks::CvUnit_unload

Hooks

static bool BeforeCvUnit_unload(CvUnit* self);static void AfterCvUnit_unload(CvUnit* self);static void ReplaceCvUnit_unload(void (*original)(CvUnit*), CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_unload>(host, &BeforeCvUnit_unload);CivRegisterAfter<CivHooks::CvUnit_unload>(host, &AfterCvUnit_unload);CivRegisterReplace<CivHooks::CvUnit_unload>(host, &ReplaceCvUnit_unload);

Code

4518void CvUnit::unload()4519{4520	VALIDATE_OBJECT4521	if(!canUnload())4522	{4523		return;4524	}45254526	setTransportUnit(NULL);4527}

Calls