Bazaar developer reference

CvCity::changeAutomatons(int, bool)

Defined in
CvCity.cpp, line 8023
Class
CvCity
Hook name
CivHooks::CvCity_changeAutomatons

Hooks

static bool BeforeCvCity_changeAutomatons(CvCity* self, int iChange, bool bReassignPop);static void AfterCvCity_changeAutomatons(CvCity* self, int iChange, bool bReassignPop);static void ReplaceCvCity_changeAutomatons(void (*original)(CvCity*, int, bool), CvCity* self, int iChange, bool bReassignPop);CivRegisterBefore<CivHooks::CvCity_changeAutomatons>(host, &BeforeCvCity_changeAutomatons);CivRegisterAfter<CivHooks::CvCity_changeAutomatons>(host, &AfterCvCity_changeAutomatons);CivRegisterReplace<CivHooks::CvCity_changeAutomatons>(host, &ReplaceCvCity_changeAutomatons);

Code

8023void CvCity::changeAutomatons(int iChange, bool bReassignPop)8024{8025	VALIDATE_OBJECT8026	setAutomatons(getAutomatons() + iChange, bReassignPop);8027}

Calls

Called by