CvCity::getIndex() const
- Defined in
- CvCity.cpp, line 7639
- Class
- CvCity
- Hook name
CivHooks::CvCity_getIndex
Hooks
static bool BeforeCvCity_getIndex(const CvCity* self, int& result);static void AfterCvCity_getIndex(const CvCity* self, int& result);static int ReplaceCvCity_getIndex(int (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_getIndex>(host, &BeforeCvCity_getIndex);CivRegisterAfter<CivHooks::CvCity_getIndex>(host, &AfterCvCity_getIndex);CivRegisterReplace<CivHooks::CvCity_getIndex>(host, &ReplaceCvCity_getIndex);
Code
7639int CvCity::getIndex() const7640{7641 VALIDATE_OBJECT7642 return (GetID() & FLTA_INDEX_MASK);7643}