// Token: 0x06004F01 RID: 20225 RVA: 0x0017DFA8 File Offset: 0x0017C1A8 public static GlobalClimbTowerInfo FromPb(ProClimbTower pbClimbTower) { GlobalClimbTowerInfo globalClimbTowerInfo = new GlobalClimbTowerInfo(); globalClimbTowerInfo.ClimbNextWeekFlushTime = new DateTime(pbClimbTower.NextFlushTime); foreach (ProClimbTowerFloor pbClimbTowerFloor in pbClimbTower.Floors) { globalClimbTowerInfo.Floors.Add(ClimbTower.FromPb(pbClimbTowerFloor)); } return(globalClimbTowerInfo); }
// Token: 0x06004EFF RID: 20223 RVA: 0x0017DEE0 File Offset: 0x0017C0E0 public static ProClimbTower ToPb(GlobalClimbTowerInfo globalClimbTowerInfo) { ProClimbTower proClimbTower = new ProClimbTower(); proClimbTower.NextFlushTime = globalClimbTowerInfo.ClimbNextWeekFlushTime.Ticks; foreach (GlobalClimbTowerFloor globalClimbTowerFloor in globalClimbTowerInfo.Floors) { proClimbTower.Floors.Add(ClimbTower.ToPb(globalClimbTowerFloor)); } return(proClimbTower); }
// Token: 0x06004AB9 RID: 19129 RVA: 0x00174AD8 File Offset: 0x00172CD8 public override object SerializeToClient() { DSClimbTowerNtf dsclimbTowerNtf = new DSClimbTowerNtf { Version = (uint)base.Version }; dsclimbTowerNtf.Floor = this.ClimbTower.Floor; dsclimbTowerNtf.HistoryFloorMax = this.ClimbTower.HistoryFloorMax; dsclimbTowerNtf.ClimbTower = ClimbTower.ToPb(this.GlobalClimbTowerInfo); return(dsclimbTowerNtf); }