Bazaar developer reference

CvPlot::SetContinentType(const char)

Defined in
CvPlot.cpp, line 11651
Class
CvPlot
Hook name
CivHooks::CvPlot_SetContinentType
Lua events
GameEvents.TerraformingPlot

Hooks

static bool BeforeCvPlot_SetContinentType(CvPlot* self, const char cContinent);static void AfterCvPlot_SetContinentType(CvPlot* self, const char cContinent);static void ReplaceCvPlot_SetContinentType(void (*original)(CvPlot*, const char), CvPlot* self, const char cContinent);CivRegisterBefore<CivHooks::CvPlot_SetContinentType>(host, &BeforeCvPlot_SetContinentType);CivRegisterAfter<CivHooks::CvPlot_SetContinentType>(host, &AfterCvPlot_SetContinentType);CivRegisterReplace<CivHooks::CvPlot_SetContinentType>(host, &ReplaceCvPlot_SetContinentType);

Code

11651void CvPlot::SetContinentType(const char cContinent)11652{11653#if defined(MOD_EVENTS_TERRAFORMING)11654	if (MOD_EVENTS_TERRAFORMING) {11655		GAMEEVENTINVOKE_HOOK(GAMEEVENT_TerraformingPlot, TERRAFORMINGEVENT_CONTINENT, m_iX, m_iY, 0, cContinent, m_cContinentType, -1, -1);11656	}11657#endif1165811659	m_cContinentType = cContinent;11660}

Calls

Called by