Bazaar developer reference

PUF_makeInfoBarDirty(CvUnit *, int, int)

Defined in
CvGameCoreUtils.cpp, line 849
Hook name
CivHooks::PUF_makeInfoBarDirty

Hooks

static bool BeforePUF_makeInfoBarDirty(CvUnit* pUnit, int arg1, int arg2, bool& result);static void AfterPUF_makeInfoBarDirty(CvUnit* pUnit, int arg1, int arg2, bool& result);static bool ReplacePUF_makeInfoBarDirty(bool (*original)(CvUnit*, int, int), CvUnit* pUnit, int arg1, int arg2);CivRegisterBefore<CivHooks::PUF_makeInfoBarDirty>(host, &BeforePUF_makeInfoBarDirty);CivRegisterAfter<CivHooks::PUF_makeInfoBarDirty>(host, &AfterPUF_makeInfoBarDirty);CivRegisterReplace<CivHooks::PUF_makeInfoBarDirty>(host, &ReplacePUF_makeInfoBarDirty);

Code

849bool PUF_makeInfoBarDirty(CvUnit* pUnit, int, int)850{851	pUnit->setInfoBarDirty(true);852	return true;853}

Calls

Called by