/// <summary>
 /// Raised after the game begins a new day (including when the player loads a save).
 /// Here it updates the mail box.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnDayStarted(object sender, DayStartedEventArgs e)
 {
     if (MailDao.HasRepositoryChanged())
     {
         Helper.Content.InvalidateCache("Data\\mail");
     }
     MailController.UpdateMailBox();
 }
Esempio n. 2
0
 /*********
 ** Private methods
 *********/
 /// <summary>
 /// The method invoked when the day starts.
 /// Here it updates the mail box.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event data.</param>
 private void TimeEvents_AfterDayStarted(object sender, EventArgs e)
 {
     MailController.UpdateMailBox();
 }
 /// <summary>
 /// Raised after the game begins a new day (including when the player loads a save).
 /// Here it updates the mail box.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnDayStarted(object sender, DayStartedEventArgs e)
 {
     MailController.UpdateMailBox();
 }