/// <summary> /// Clears save-specific data for villager reactions, sunscreen, and sunburn. Raised when the player returns to title screen. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void onReturnedToTitle(object sender, ReturnedToTitleEventArgs e) { //clear any previous data from other saves? Initialize zeros and all? IsSaveReady = false; Reacts = null; Sunscreen = null; Burn = null; }
/// <summary> /// Re-initialize reacts, lotions, sunscreen and burn data. Refresh TV channel data. Raised when a save is loaded. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void onSaveLoaded(object sender, SaveLoadedEventArgs e) { //initialize new instances of Burn and Sunscreen Reacts = new Reactions(); Lotion = new Lotions(); Sunscreen = new SunscreenProtection(); Burn = new Sunburn(); Helper.Content.InvalidateCache("Strings\\StringsFromCSFiles"); //Refresh TV weather info IsSaveReady = true; }