Bazaar developer reference

CvCity::SetIndustrialRouteToCapital(bool)

Defined in
CvCity.cpp, line 1994
Class
CvCity
Hook name
CivHooks::CvCity_SetIndustrialRouteToCapital

Hooks

static bool BeforeCvCity_SetIndustrialRouteToCapital(CvCity* self, bool bValue);static void AfterCvCity_SetIndustrialRouteToCapital(CvCity* self, bool bValue);static void ReplaceCvCity_SetIndustrialRouteToCapital(void (*original)(CvCity*, bool), CvCity* self, bool bValue);CivRegisterBefore<CivHooks::CvCity_SetIndustrialRouteToCapital>(host, &BeforeCvCity_SetIndustrialRouteToCapital);CivRegisterAfter<CivHooks::CvCity_SetIndustrialRouteToCapital>(host, &AfterCvCity_SetIndustrialRouteToCapital);CivRegisterReplace<CivHooks::CvCity_SetIndustrialRouteToCapital>(host, &ReplaceCvCity_SetIndustrialRouteToCapital);

Code

1993/// Connected to capital with industrial route? (Railroads)1994void CvCity::SetIndustrialRouteToCapital(bool bValue)1995{1996	if(bValue != IsIndustrialRouteToCapital())1997	{1998		m_bIndustrialRouteToCapital = bValue;1999	}2000}

Calls

Called by