Bazaar developer reference

CvUnit::SetGreatWork(GreatWorkType)

Defined in
CvUnit.cpp, line 20125
Class
CvUnit
Hook name
CivHooks::CvUnit_SetGreatWork

Hooks

static bool BeforeCvUnit_SetGreatWork(CvUnit* self, GreatWorkType eGreatWork);static void AfterCvUnit_SetGreatWork(CvUnit* self, GreatWorkType eGreatWork);static void ReplaceCvUnit_SetGreatWork(void (*original)(CvUnit*, GreatWorkType), CvUnit* self, GreatWorkType eGreatWork);CivRegisterBefore<CivHooks::CvUnit_SetGreatWork>(host, &BeforeCvUnit_SetGreatWork);CivRegisterAfter<CivHooks::CvUnit_SetGreatWork>(host, &AfterCvUnit_SetGreatWork);CivRegisterReplace<CivHooks::CvUnit_SetGreatWork>(host, &ReplaceCvUnit_SetGreatWork);

Code

20125void CvUnit::SetGreatWork(GreatWorkType eGreatWork)20126{20127	VALIDATE_OBJECT20128	m_eGreatWork = eGreatWork;20129}

Called by