Bazaar developer reference

CvDllPlayer::GetName() const

Defined in
CvDllPlayer.cpp, line 124
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetName

Hooks

static bool BeforeCvDllPlayer_GetName(const CvDllPlayer* self, const char*& result);static void AfterCvDllPlayer_GetName(const CvDllPlayer* self, const char*& result);static const char* ReplaceCvDllPlayer_GetName(const char* (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetName::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetName);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetName::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetName);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetName::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetName);

Code

124const char* CvDllPlayer::GetName() const125{126	return m_pPlayer->getName();127}

Calls