CvUnitClassInfo::getDefaultUnitIndex() const
- Defined in
- CvInfos.cpp, line 1679
- Class
- CvUnitClassInfo
- Hook name
CivHooks::CvUnitClassInfo_getDefaultUnitIndex
Hooks
static bool BeforeCvUnitClassInfo_getDefaultUnitIndex(const CvUnitClassInfo* self, int& result);static void AfterCvUnitClassInfo_getDefaultUnitIndex(const CvUnitClassInfo* self, int& result);static int ReplaceCvUnitClassInfo_getDefaultUnitIndex(int (*original)(const CvUnitClassInfo*), const CvUnitClassInfo* self);CivRegisterBefore<CivHooks::CvUnitClassInfo_getDefaultUnitIndex>(host, &BeforeCvUnitClassInfo_getDefaultUnitIndex);CivRegisterAfter<CivHooks::CvUnitClassInfo_getDefaultUnitIndex>(host, &AfterCvUnitClassInfo_getDefaultUnitIndex);CivRegisterReplace<CivHooks::CvUnitClassInfo_getDefaultUnitIndex>(host, &ReplaceCvUnitClassInfo_getDefaultUnitIndex);
Code
1679int CvUnitClassInfo::getDefaultUnitIndex() const1680{1681 return m_iDefaultUnitIndex;1682}
Called by
- CvGame::GetCompetitiveSpawnUnitType(PlayerTypes, bool, bool, bool)
- CvGame::GetCsGiftSpawnUnitType(PlayerTypes, bool)
- CvGame::GetRandomSpawnUnitType(PlayerTypes, bool, bool)
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvGameQueries::GetLeastAdvancedUnitClassNobodyHas(bool)
- CvPlayer::GetSpecificUnitType(const char *, bool)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)
- CvLuaGame::lGetUnitUpgradesTo(lua_State *)