src/game/Strategic/Game_Events.cc
BOOLEAN AddPeriodStrategicEvent(StrategicEventKind const ubCallbackID, UINT32 const uiOnceEveryXMinutes, UINT32 const uiParam)
{
	STRATEGICEVENT *pEvent;
	pEvent = AddAdvancedStrategicEvent( PERIODIC_EVENT, ubCallbackID, GetWorldDayInSeconds() + uiOnceEveryXMinutes * 60, uiParam );
	if( pEvent )
	{
		pEvent->uiTimeOffset = uiOnceEveryXMinutes * 60;
		return TRUE;
	}
	return FALSE;
}
//NEW:  Period Events
//Event will get processed automatically once every X minutes.
Period Events
Event will get processed automatically once every X minutes.
Period Events Event will get processed automatically once every X minutes .
BOOLEAN AddPeriodStrategicEvent(StrategicEventKind const ubCallbackID, UINT32 const uiOnceEveryXMinutes, UINT32 const uiParam)
{
	STRATEGICEVENT *pEvent;
	pEvent = AddAdvancedStrategicEvent( PERIODIC_EVENT, ubCallbackID, GetWorldDayInSeconds() + uiOnceEveryXMinutes * 60, uiParam );
	if( pEvent )
	{
		pEvent->uiTimeOffset = uiOnceEveryXMinutes * 60;
		return TRUE;
	}
	return FALSE;
}
BOOLEAN AddPeriodStrategicEvent ( StrategicEventKind const ubCallbackID , UINT32 const uiOnceEveryXMinutes , UINT32 const uiParam ) { STRATEGICEVENT * pEvent ; pEvent = AddAdvancedStrategicEvent ( PERIODIC_EVENT , ubCallbackID , GetWorldDayInSeconds ( ) + uiOnceEveryXMinutes * 60 , uiParam ) ; if ( pEvent ) { pEvent -> uiTimeOffset = uiOnceEveryXMinutes * 60 ; return TRUE ; } return FALSE ; }
NEW:  Period Events
Event will get processed automatically once every X minutes.
NEW : Period Events Event will get processed automatically once every X minutes .