// Token: 0x060050A0 RID: 20640 RVA: 0x0018167C File Offset: 0x0017F87C public void DeserializeFromPB(ProLimitedTimeExchangeOperationActivity pbOperationalActivity, ConfigDataOperationalActivityInfo config) { base.OperationStartTime = new DateTime(pbOperationalActivity.BasicInfo.OperationStartTime); base.OperationEndTime = new DateTime(pbOperationalActivity.BasicInfo.OperationEndTime); base.GainRewardEndTime = new DateTime(pbOperationalActivity.BasicInfo.GainRewardEndTime); foreach (ProLimitedTimeExchangeOperationActivityItemGroup proLimitedTimeExchangeOperationActivityItemGroup in pbOperationalActivity.ExchangedItemGroups) { this.ExchangedItemGroups.Add(proLimitedTimeExchangeOperationActivityItemGroup.ItemGroupIndex, proLimitedTimeExchangeOperationActivityItemGroup.ExchangedNums); } base.Config = config; }
// Token: 0x060050A2 RID: 20642 RVA: 0x00181748 File Offset: 0x0017F948 public ProLimitedTimeExchangeOperationActivity SerializeToPB() { ProLimitedTimeExchangeOperationActivity proLimitedTimeExchangeOperationActivity = new ProLimitedTimeExchangeOperationActivity(); proLimitedTimeExchangeOperationActivity.BasicInfo = base.ToPBOperationalActivityBasicData(); foreach (KeyValuePair <int, int> keyValuePair in this.ExchangedItemGroups) { proLimitedTimeExchangeOperationActivity.ExchangedItemGroups.Add(new ProLimitedTimeExchangeOperationActivityItemGroup { ItemGroupIndex = keyValuePair.Key, ExchangedNums = keyValuePair.Value }); } return(proLimitedTimeExchangeOperationActivity); }
public static int SerializeToPB(IntPtr l) { int result; try { LimitedTimeExchangeOperationActivity limitedTimeExchangeOperationActivity = (LimitedTimeExchangeOperationActivity)LuaObject.checkSelf(l); ProLimitedTimeExchangeOperationActivity o = limitedTimeExchangeOperationActivity.SerializeToPB(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }