Bazaar developer reference

CvWonderProductionAI::GetWeight(BuildingTypes)

Defined in
CvWonderProductionAI.cpp, line 194
Class
CvWonderProductionAI
Hook name
CivHooks::CvWonderProductionAI_GetWeight

Hooks

static bool BeforeCvWonderProductionAI_GetWeight(CvWonderProductionAI* self, BuildingTypes eBldg, int& result);static void AfterCvWonderProductionAI_GetWeight(CvWonderProductionAI* self, BuildingTypes eBldg, int& result);static int ReplaceCvWonderProductionAI_GetWeight(int (*original)(CvWonderProductionAI*, BuildingTypes), CvWonderProductionAI* self, BuildingTypes eBldg);CivRegisterBefore<CivHooks::CvWonderProductionAI_GetWeight>(host, &BeforeCvWonderProductionAI_GetWeight);CivRegisterAfter<CivHooks::CvWonderProductionAI_GetWeight>(host, &AfterCvWonderProductionAI_GetWeight);CivRegisterReplace<CivHooks::CvWonderProductionAI_GetWeight>(host, &ReplaceCvWonderProductionAI_GetWeight);

Code

193/// Retrieve sum of weights on one item194int CvWonderProductionAI::GetWeight(BuildingTypes eBldg)195{196	return m_WonderAIWeights.GetWeight(eBldg);197}

Calls