Bazaar developer reference

CvPlayer::addUnit()

Defined in
CvPlayer.cpp, line 21871
Class
CvPlayer
Hook name
CivHooks::CvPlayer_addUnit

Hooks

static bool BeforeCvPlayer_addUnit(CvPlayer* self, CvUnit*& result);static void AfterCvPlayer_addUnit(CvPlayer* self, CvUnit*& result);static CvUnit* ReplaceCvPlayer_addUnit(CvUnit* (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_addUnit>(host, &BeforeCvPlayer_addUnit);CivRegisterAfter<CivHooks::CvPlayer_addUnit>(host, &AfterCvPlayer_addUnit);CivRegisterReplace<CivHooks::CvPlayer_addUnit>(host, &ReplaceCvPlayer_addUnit);

Code

21871CvUnit* CvPlayer::addUnit()21872{21873	return (m_units.Add());21874}

Calls

Called by