Bazaar developer reference

CvDllTeam::GetTechCount() const

Defined in
CvDllTeam.cpp, line 159
Class
CvDllTeam
Hook name
CivHooks::CvDllTeam_GetTechCount

Hooks

static bool BeforeCvDllTeam_GetTechCount(const CvDllTeam* self, int& result);static void AfterCvDllTeam_GetTechCount(const CvDllTeam* self, int& result);static int ReplaceCvDllTeam_GetTechCount(int (*original)(const CvDllTeam*), const CvDllTeam* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllTeam_GetTechCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllTeam_GetTechCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllTeam_GetTechCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllTeam_GetTechCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllTeam_GetTechCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllTeam_GetTechCount);

Code

159int CvDllTeam::GetTechCount() const160{161	CvTeamTechs* pkTeamTechs = m_pTeam->GetTeamTechs();162	if (pkTeamTechs)163	{164		return pkTeamTechs->GetNumTechsKnown();165	}166	return 0;167}

Calls