CvGame::GetPeaceDuration()
- Defined in
- CvGame.cpp, line 11336
- Class
- CvGame
- Hook name
CivHooks::CvGame_GetPeaceDuration
Hooks
static bool BeforeCvGame_GetPeaceDuration(CvGame* self, int& result);static void AfterCvGame_GetPeaceDuration(CvGame* self, int& result);static int ReplaceCvGame_GetPeaceDuration(int (*original)(CvGame*), CvGame* self);CivRegisterBefore<CivHooks::CvGame_GetPeaceDuration>(host, &BeforeCvGame_GetPeaceDuration);CivRegisterAfter<CivHooks::CvGame_GetPeaceDuration>(host, &AfterCvGame_GetPeaceDuration);CivRegisterReplace<CivHooks::CvGame_GetPeaceDuration>(host, &ReplaceCvGame_GetPeaceDuration);
Code
11336int CvGame::GetPeaceDuration()11337{11338 return getGameSpeedInfo().getPeaceDealDuration();11339}