public override Dictionary <string, object> SaveToDict() { var dict = new Dictionary <string, object>(); dict.Add(GDMConstants.SchemaKey, "Setting"); dict.Merge(true, isMusicOn.ToGDEDict(isMusicOnKey)); dict.Merge(true, isSoundEffectOn.ToGDEDict(isSoundEffectOnKey)); dict.Merge(true, isAutoBattle.ToGDEDict(isAutoBattleKey)); dict.Merge(true, isAutoHang.ToGDEDict(isAutoHangKey)); dict.Merge(true, isFastModeEnabled.ToGDEDict(isFastModeEnabledKey)); dict.Merge(true, HapticTouchEnabled.ToGDEDict(HapticTouchEnabledKey)); dict.Merge(true, FoundPurchaseState.ToGDEDict(FoundPurchaseStateKey)); dict.Merge(true, ChargeGiftGotState.ToGDEDict(ChargeGiftGotStateKey)); dict.Merge(true, Show7DaysActivity.ToGDEDict(Show7DaysActivityKey)); dict.Merge(true, BattleSpeed.ToGDEDict(BattleSpeedKey)); dict.Merge(true, WatchAdsSuccessNum.ToGDEDict(WatchAdsSuccessNumKey)); dict.Merge(true, ReviveTimes.ToGDEDict(ReviveTimesKey)); dict.Merge(true, MainMissionProgress.ToGDEDict(MainMissionProgressKey)); dict.Merge(true, autoBattleHint.ToGDEDict(autoBattleHintKey)); dict.Merge(true, FastLeftTime.ToGDEDict(FastLeftTimeKey)); dict.Merge(true, battleTimes.ToGDEDict(battleTimesKey)); dict.Merge(true, first_time_fail_game.ToGDEDict(first_time_fail_gameKey)); dict.Merge(true, seatUnlocked.ToGDEDict(seatUnlockedKey)); return(dict); }
public Settings() { BGMBalance = 5; SEBalance = 5; BattleFlow = BattleSpeed.Normal; Language = ""; Window = 2; DirKeys = new Keys[4]; ActionKeys = new Keys[(int)FrameInput.InputType.Wait]; ActionButtons = new Buttons[(int)FrameInput.InputType.Wait]; ServerList = new List <ServerInfo>(); ContactList = new List <ContactInfo>(); PeerList = new List <PeerInfo>(); DefaultControls(DirKeys, ActionKeys, ActionButtons); }