// Token: 0x06004CEB RID: 19691 RVA: 0x00179A2C File Offset: 0x00177C2C public override object SerializeToClient() { return(new DSResourceNtf { Version = (int)base.Version, Resource = PlayerOutOfBagItem.ToPB(this.m_resource) }); }
// Token: 0x060050B6 RID: 20662 RVA: 0x00181A80 File Offset: 0x0017FC80 public static ProResource ToPB(PlayerOutOfBagItem resource) { ProResource proResource = new ProResource(); proResource.HeadFrames.AddRange(resource.HeadFrames); proResource.HeroSkinIds.AddRange(resource.HeroSkinIds); proResource.SoldierSkinIds.AddRange(resource.SoldierSkinIds); proResource.EquipmentIds.AddRange(resource.EquipmentIds); foreach (MonthCard monthCard in resource.MonthCards) { proResource.MonthCards.Add(MonthCard.ToPB(monthCard)); } return proResource; }
// Token: 0x060050B7 RID: 20663 RVA: 0x00181B34 File Offset: 0x0017FD34 public static PlayerOutOfBagItem FromPB(ProResource pbResource) { PlayerOutOfBagItem playerOutOfBagItem = new PlayerOutOfBagItem(); playerOutOfBagItem.HeadFrames.AddRange(pbResource.HeadFrames); playerOutOfBagItem.HeroSkinIds.AddRange(pbResource.HeroSkinIds); playerOutOfBagItem.SoldierSkinIds.AddRange(pbResource.SoldierSkinIds); playerOutOfBagItem.EquipmentIds.AddRange(pbResource.EquipmentIds); foreach (ProMonthCard pbMonthCard in pbResource.MonthCards) { playerOutOfBagItem.MonthCards.Add(MonthCard.FromPB(pbMonthCard)); } return playerOutOfBagItem; }
// Token: 0x06004CF7 RID: 19703 RVA: 0x00179C8C File Offset: 0x00177E8C public void InitResource(PlayerOutOfBagItem resource) { this.m_resource = resource; }