Bazaar developer reference

CvGlobals::getPolicyBranchInfo(PolicyBranchTypes)

Defined in
CvGlobals.cpp, line 3703
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes

Hooks

static bool BeforeCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes(CvGlobals* self, PolicyBranchTypes ePolicyBranchNum, CvPolicyBranchEntry*& result);static void AfterCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes(CvGlobals* self, PolicyBranchTypes ePolicyBranchNum, CvPolicyBranchEntry*& result);static CvPolicyBranchEntry* ReplaceCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes(CvPolicyBranchEntry* (*original)(CvGlobals*, PolicyBranchTypes), CvGlobals* self, PolicyBranchTypes ePolicyBranchNum);CivRegisterBefore<CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes>(host, &BeforeCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes);CivRegisterAfter<CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes>(host, &AfterCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes);CivRegisterReplace<CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes>(host, &ReplaceCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes);

Code

3703CvPolicyBranchEntry* CvGlobals::getPolicyBranchInfo(PolicyBranchTypes ePolicyBranchNum)3704{3705	CvAssert(ePolicyBranchNum > -1);3706	CvAssert(ePolicyBranchNum < GC.getNumPolicyBranchInfos());3707	return m_pPolicies->GetPolicyBranchEntries()[ePolicyBranchNum];3708}

Calls

Called by