public GDESettingData ShallowClone() { string newKey = Guid.NewGuid().ToString(); GDESettingData newClone = new GDESettingData(newKey); newClone.isMusicOn = isMusicOn; newClone.isSoundEffectOn = isSoundEffectOn; newClone.isAutoBattle = isAutoBattle; newClone.isAutoHang = isAutoHang; newClone.isFastModeEnabled = isFastModeEnabled; newClone.HapticTouchEnabled = HapticTouchEnabled; newClone.FoundPurchaseState = FoundPurchaseState; newClone.ChargeGiftGotState = ChargeGiftGotState; newClone.Show7DaysActivity = Show7DaysActivity; newClone.BattleSpeed = BattleSpeed; newClone.WatchAdsSuccessNum = WatchAdsSuccessNum; newClone.ReviveTimes = ReviveTimes; newClone.MainMissionProgress = MainMissionProgress; newClone.autoBattleHint = autoBattleHint; newClone.FastLeftTime = FastLeftTime; newClone.battleTimes = battleTimes; newClone.first_time_fail_game = first_time_fail_game; newClone.seatUnlocked = new List <int>(seatUnlocked); newClone.Set_seatUnlocked(); return(newClone); }
public GDESettingData DeepClone() { GDESettingData newClone = ShallowClone(); return(newClone); }