Bazaar developer reference

CvPreGame::CustomOption::GetName(size_t &) const

Defined in
CvPreGame.cpp, line 134
Class
CvPreGame::CustomOption
Hook name
CivHooks::CvPreGame_CustomOption_GetName

Hooks

static bool BeforeCvPreGame_CustomOption_GetName(const CvPreGame::CustomOption* self, size_t& bytes, const char*& result);static void AfterCvPreGame_CustomOption_GetName(const CvPreGame::CustomOption* self, size_t& bytes, const char*& result);static const char* ReplaceCvPreGame_CustomOption_GetName(const char* (*original)(const CvPreGame::CustomOption*, size_t&), const CvPreGame::CustomOption* self, size_t& bytes);CivRegisterBefore<CivHooks::CvPreGame_CustomOption_GetName>(host, &BeforeCvPreGame_CustomOption_GetName);CivRegisterAfter<CivHooks::CvPreGame_CustomOption_GetName>(host, &AfterCvPreGame_CustomOption_GetName);CivRegisterReplace<CivHooks::CvPreGame_CustomOption_GetName>(host, &ReplaceCvPreGame_CustomOption_GetName);

Code

134const char* CustomOption::GetName(size_t& bytes) const135{136	bytes = strlen(m_szOptionName);137	return m_szOptionName;138}

Calls

Called by