Bazaar developer reference

HomelandAIHelpers::CvHomelandUnitAuxIntReverseSort(CvHomelandUnit, CvHomelandUnit)

Defined in
CvHomelandAI.cpp, line 6306
Hook name
CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntReverseSort

Hooks

static bool BeforeHomelandAIHelpers_CvHomelandUnitAuxIntReverseSort(CvHomelandUnit obj1, CvHomelandUnit obj2, bool& result);static void AfterHomelandAIHelpers_CvHomelandUnitAuxIntReverseSort(CvHomelandUnit obj1, CvHomelandUnit obj2, bool& result);static bool ReplaceHomelandAIHelpers_CvHomelandUnitAuxIntReverseSort(bool (*original)(CvHomelandUnit, CvHomelandUnit), CvHomelandUnit obj1, CvHomelandUnit obj2);CivRegisterBefore<CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntReverseSort>(host, &BeforeHomelandAIHelpers_CvHomelandUnitAuxIntReverseSort);CivRegisterAfter<CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntReverseSort>(host, &AfterHomelandAIHelpers_CvHomelandUnitAuxIntReverseSort);CivRegisterReplace<CivHooks::HomelandAIHelpers_CvHomelandUnitAuxIntReverseSort>(host, &ReplaceHomelandAIHelpers_CvHomelandUnitAuxIntReverseSort);

Code

6306bool HomelandAIHelpers::CvHomelandUnitAuxIntReverseSort(CvHomelandUnit obj1, CvHomelandUnit obj2)6307{6308	return obj1.GetAuxIntData() > obj2.GetAuxIntData();6309}

Calls

Called by