// Token: 0x06004D84 RID: 19844 RVA: 0x0017AE14 File Offset: 0x00179014 public override object SerializeToClient() { DSUnchartedScoreNtf dsunchartedScoreNtf = new DSUnchartedScoreNtf { Version = (uint)base.Version }; dsunchartedScoreNtf.UnchartedScores.AddRange(UnchartedScore.ProUnchartedScores2PbProUnchartedScores(this.UnchartedScores.Values.ToList <UnchartedScore>())); return(dsunchartedScoreNtf); }
// Token: 0x0600515D RID: 20829 RVA: 0x001834E0 File Offset: 0x001816E0 private static ProUnchartedScore UnchartedScore2PbUnchartedScore(UnchartedScore unchartedScore) { ProUnchartedScore proUnchartedScore = new ProUnchartedScore { Id = unchartedScore.Id, BonusCount = unchartedScore.BonusCount }; proUnchartedScore.ChallengeLevelCompleteIds.AddRange(unchartedScore.ChallengeLevelCompleteIds); proUnchartedScore.SocreLevelCompleteIds.AddRange(unchartedScore.SocreLevelCompleteIds); proUnchartedScore.RewardGains.AddRange(unchartedScore.RewardGains); proUnchartedScore.Score = unchartedScore.Score; return(proUnchartedScore); }
// Token: 0x0600515C RID: 20828 RVA: 0x00183474 File Offset: 0x00181674 public static List <ProUnchartedScore> ProUnchartedScores2PbProUnchartedScores(List <UnchartedScore> unchartedScores) { List <ProUnchartedScore> list = new List <ProUnchartedScore>(); foreach (UnchartedScore unchartedScore in unchartedScores) { ProUnchartedScore proUnchartedScore = UnchartedScore.UnchartedScore2PbUnchartedScore(unchartedScore); if (proUnchartedScore != null) { list.Add(proUnchartedScore); } } return(list); }
// Token: 0x0600515F RID: 20831 RVA: 0x0018357C File Offset: 0x0018177C public static UnchartedScore PbUnchartedScoreToUnchartedScore(ProUnchartedScore pbUnchartedScore) { UnchartedScore unchartedScore = new UnchartedScore(pbUnchartedScore.Id) { BonusCount = pbUnchartedScore.BonusCount }; foreach (int item in pbUnchartedScore.ChallengeLevelCompleteIds) { unchartedScore.ChallengeLevelCompleteIds.Add(item); } foreach (int item2 in pbUnchartedScore.SocreLevelCompleteIds) { unchartedScore.SocreLevelCompleteIds.Add(item2); } foreach (int item3 in pbUnchartedScore.RewardGains) { unchartedScore.RewardGains.Add(item3); } unchartedScore.Score = pbUnchartedScore.Score; return(unchartedScore); }