Bazaar developer reference

HomelandAIHelpers::CvHomelandUnitAuxIntSort(CvHomelandUnit, CvHomelandUnit)

Defined in
CvHomelandAI.cpp, line 6301
Hook name
CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntSort

Hooks

static bool BeforeHomelandAIHelpers_CvHomelandUnitAuxIntSort(CvHomelandUnit obj1, CvHomelandUnit obj2, bool& result);static void AfterHomelandAIHelpers_CvHomelandUnitAuxIntSort(CvHomelandUnit obj1, CvHomelandUnit obj2, bool& result);static bool ReplaceHomelandAIHelpers_CvHomelandUnitAuxIntSort(bool (*original)(CvHomelandUnit, CvHomelandUnit), CvHomelandUnit obj1, CvHomelandUnit obj2);CivRegisterBefore<CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntSort>(host, &BeforeHomelandAIHelpers_CvHomelandUnitAuxIntSort);CivRegisterAfter<CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntSort>(host, &AfterHomelandAIHelpers_CvHomelandUnitAuxIntSort);CivRegisterReplace<CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntSort>(host, &ReplaceHomelandAIHelpers_CvHomelandUnitAuxIntSort);

Code

6300/// Sort CvHomelandUnit by a non-standard criteria6301bool HomelandAIHelpers::CvHomelandUnitAuxIntSort(CvHomelandUnit obj1, CvHomelandUnit obj2)6302{6303	return obj1.GetAuxIntData() < obj2.GetAuxIntData();6304}

Calls

Called by