Bazaar developer reference

CvBuildingEntry::GetTechShare() const

Defined in
CvBuildingClasses.cpp, line 1228
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetTechShare

Hooks

static bool BeforeCvBuildingEntry_GetTechShare(const CvBuildingEntry* self, int& result);static void AfterCvBuildingEntry_GetTechShare(const CvBuildingEntry* self, int& result);static int ReplaceCvBuildingEntry_GetTechShare(int (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_GetTechShare>(host, &BeforeCvBuildingEntry_GetTechShare);CivRegisterAfter<CivHooks::CvBuildingEntry_GetTechShare>(host, &AfterCvBuildingEntry_GetTechShare);CivRegisterReplace<CivHooks::CvBuildingEntry_GetTechShare>(host, &ReplaceCvBuildingEntry_GetTechShare);

Code

1227/// If this # of players have a Tech then the owner of this Building gets that Tech as well1228int CvBuildingEntry::GetTechShare() const1229{1230	return m_iTechShare;1231}

Called by