Bazaar developer reference

CvWorldInfo::CreateCustomWorldSize(const CvWorldInfo &, int, int)

Defined in
CvInfos.cpp, line 6048
Class
CvWorldInfo
Hook name
CivHooks::CvWorldInfo_CreateCustomWorldSize

Hooks

static bool BeforeCvWorldInfo_CreateCustomWorldSize(const CvWorldInfo& kTemplate, int iWidth, int iHeight, CvWorldInfo& result);static void AfterCvWorldInfo_CreateCustomWorldSize(const CvWorldInfo& kTemplate, int iWidth, int iHeight, CvWorldInfo& result);static CvWorldInfo ReplaceCvWorldInfo_CreateCustomWorldSize(CvWorldInfo (*original)(const CvWorldInfo&, int, int), const CvWorldInfo& kTemplate, int iWidth, int iHeight);CivRegisterBefore<CivHooks::CvWorldInfo_CreateCustomWorldSize>(host, &BeforeCvWorldInfo_CreateCustomWorldSize);CivRegisterAfter<CivHooks::CvWorldInfo_CreateCustomWorldSize>(host, &AfterCvWorldInfo_CreateCustomWorldSize);CivRegisterReplace<CivHooks::CvWorldInfo_CreateCustomWorldSize>(host, &ReplaceCvWorldInfo_CreateCustomWorldSize);

Code

6048CvWorldInfo CvWorldInfo::CreateCustomWorldSize(const CvWorldInfo& kTemplate, int iWidth, int iHeight)6049{6050	CvWorldInfo kWorldInfo(kTemplate);6051	kWorldInfo.m_iGridWidth = iWidth;6052	kWorldInfo.m_iGridHeight = iHeight;60536054	return kWorldInfo;6055}

Calls

Called by