CustomMods::getOption(const char *, int)
- Defined in
- CustomMods.cpp, line 217
- Class
- CustomMods
- Hook name
CivHooks::CustomMods_getOption
Hooks
static bool BeforeCustomMods_getOption(CustomMods* self, const char* szOption, int defValue, int& result);static void AfterCustomMods_getOption(CustomMods* self, const char* szOption, int defValue, int& result);static int ReplaceCustomMods_getOption(int (*original)(CustomMods*, const char*, int), CustomMods* self, const char* szOption, int defValue);CivRegisterBefore<CivHooks::CustomMods_getOption>(host, &BeforeCustomMods_getOption);CivRegisterAfter<CivHooks::CustomMods_getOption>(host, &AfterCustomMods_getOption);CivRegisterReplace<CivHooks::CustomMods_getOption>(host, &ReplaceCustomMods_getOption);
Code
217int CustomMods::getOption(const char* szOption, int defValue) {218 return getOption(string(szOption), defValue);219}
Calls
- CustomMods::getOption(string, int)
std::basic_string::basic_string
Called by
- CustomMods::getCivOption(const char *, const char *, int)
- CustomMods::preloadCache()
- CvBuilderTaskingAI::FindTurnsAway(CvUnit *, CvPlot *, bool)
- CvCity::GetPurchaseCost(BuildingTypes)
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvNotifications::Activate(Notification &)
- CvPlayer::DoCivilianReturnLogic(bool, PlayerTypes, int)
- CvPlayer::getMaxStockpile() const
- CvUnit::GetBaseRangedCombatStrength() const
- CvUnit::GetRange() const
- CvLuaGame::lGetCustomModOption(lua_State *)
- CvLuaGame::lIsCustomModOption(lua_State *)