Bazaar developer reference

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

Called by