Bazaar developer reference

CvUnit::GetIDInfo() const

Defined in
CvUnit.cpp, line 15496
Class
CvUnit
Hook name
CivHooks::CvUnit_GetIDInfo

Hooks

static bool BeforeCvUnit_GetIDInfo(const CvUnit* self, IDInfo& result);static void AfterCvUnit_GetIDInfo(const CvUnit* self, IDInfo& result);static IDInfo ReplaceCvUnit_GetIDInfo(IDInfo (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_GetIDInfo>(host, &BeforeCvUnit_GetIDInfo);CivRegisterAfter<CivHooks::CvUnit_GetIDInfo>(host, &AfterCvUnit_GetIDInfo);CivRegisterReplace<CivHooks::CvUnit_GetIDInfo>(host, &ReplaceCvUnit_GetIDInfo);

Code

15496IDInfo CvUnit::GetIDInfo() const15497{15498	VALIDATE_OBJECT15499	IDInfo unit(getOwner(), GetID());15500	return unit;15501}

Calls

Called by