using MoleMole.Config; namespace MoleMole { public static class NotificationSettingData { public static void ApplyNotificationSettingConfig() { ConfigNotificationSetting personalNotificationSetting = Singleton.Instance.LocalData.PersonalNotificationSetting; if (personalNotificationSetting.IsUserDefined) { } } public static void CopyPersonalNotificationConfig(ref ConfigNotificationSetting to) { ConfigNotificationSetting personalNotificationSetting = Singleton.Instance.LocalData.PersonalNotificationSetting; to.StaminaFullNotificaltion = personalNotificationSetting.StaminaFullNotificaltion; to.SkillPointFullNotification = personalNotificationSetting.SkillPointFullNotification; to.ActivityNotification = personalNotificationSetting.ActivityNotification; to.VentureDoneNotification = personalNotificationSetting.VentureDoneNotification; to.CabinLevelUpNotification = personalNotificationSetting.CabinLevelUpNotification; } public static bool IsValueEqualToPersonalNotificationConfig(ConfigNotificationSetting to) { ConfigNotificationSetting personalNotificationSetting = Singleton.Instance.LocalData.PersonalNotificationSetting; return personalNotificationSetting.ActivityNotification == to.ActivityNotification && personalNotificationSetting.StaminaFullNotificaltion == to.StaminaFullNotificaltion && personalNotificationSetting.SkillPointFullNotification == to.SkillPointFullNotification && personalNotificationSetting.VentureDoneNotification == to.VentureDoneNotification && personalNotificationSetting.CabinLevelUpNotification == to.CabinLevelUpNotification; } public static void SavePersonalNotificationConfig(ConfigNotificationSetting settingConfig) { Singleton.Instance.LocalData.PersonalNotificationSetting.StaminaFullNotificaltion = settingConfig.StaminaFullNotificaltion; Singleton.Instance.LocalData.PersonalNotificationSetting.SkillPointFullNotification = settingConfig.SkillPointFullNotification; Singleton.Instance.LocalData.PersonalNotificationSetting.ActivityNotification = settingConfig.ActivityNotification; Singleton.Instance.LocalData.PersonalNotificationSetting.VentureDoneNotification = settingConfig.VentureDoneNotification; Singleton.Instance.LocalData.PersonalNotificationSetting.CabinLevelUpNotification = settingConfig.CabinLevelUpNotification; Singleton.Instance.LocalData.PersonalNotificationSetting.IsUserDefined = true; Singleton.Instance.Save(); ApplyNotificationSettingConfig(); } } }