Bazaar developer reference

isPickableName(const char *)

Defined in
CvGameCoreUtils.cpp, line 880
Hook name
CivHooks::isPickableName

Hooks

static bool BeforeisPickableName(const char* szName, bool& result);static void AfterisPickableName(const char* szName, bool& result);static bool ReplaceisPickableName(bool (*original)(const char*), const char* szName);CivRegisterBefore<CivHooks::isPickableName>(host, &BeforeisPickableName);CivRegisterAfter<CivHooks::isPickableName>(host, &AfterisPickableName);CivRegisterReplace<CivHooks::isPickableName>(host, &ReplaceisPickableName);

Code

880bool isPickableName(const char* szName)881{882	if(szName)883	{884		int iLen = _tcslen(szName);885886		if(!_tcsicmp(&szName[iLen-6], "NOPICK"))887		{888			return false;889		}890	}891892	return true;893}

Calls