From 9378edfa68fff6b3429bd2d76e9516e4836c27ed Mon Sep 17 00:00:00 2001 From: "WIN-IEQ8U88PPRB\\Administrator" <289563215@qq.com> Date: Tue, 9 Jun 2026 15:15:23 +0800 Subject: [PATCH] drUserData --- Scripts/DR_Generated/DRUserData.cs | 173 +++++ Scripts/DR_Generated/DRUserData.cs.meta | 11 + .../Byway/Thrift/Data/AllConfigs.cs | 452 +++++++------ .../Byway/Thrift/Data/UserData.Extensions.cs | 65 ++ .../Thrift/Data/UserData.Extensions.cs.meta | 11 + .../gen-netstd/Byway/Thrift/Data/UserData.cs | 214 +++++++ .../Byway/Thrift/Data/UserData.cs.meta | 11 + .../Byway/Thrift/Data/UserDataItem.cs | 594 ++++++++++++++++++ .../Byway/Thrift/Data/UserDataItem.cs.meta | 11 + 9 files changed, 1345 insertions(+), 197 deletions(-) create mode 100644 Scripts/DR_Generated/DRUserData.cs create mode 100644 Scripts/DR_Generated/DRUserData.cs.meta create mode 100644 Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs create mode 100644 Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs.meta create mode 100644 Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs create mode 100644 Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs.meta create mode 100644 Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs create mode 100644 Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs.meta diff --git a/Scripts/DR_Generated/DRUserData.cs b/Scripts/DR_Generated/DRUserData.cs new file mode 100644 index 0000000..562e147 --- /dev/null +++ b/Scripts/DR_Generated/DRUserData.cs @@ -0,0 +1,173 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: UserData +// 数据类: UserDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// UserData 数据行 + /// + public class DRUserData : DataRowBase + { + private UserDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// Exp + /// + public int Exp + { + get + { + return _configData?.Exp ?? 0; + } + } + + /// + /// Item + /// + public string Item + { + get + { + return _configData?.Item ?? ""; + } + } + + /// + /// EnergyMul + /// + public int EnergyMul + { + get + { + return _configData?.EnergyMul ?? 0; + } + } + + /// + /// Reward_1 + /// + public string Reward_1 + { + get + { + return _configData?.Reward_1 ?? ""; + } + } + + /// + /// Reward_2 + /// + public string Reward_2 + { + get + { + return _configData?.Reward_2 ?? ""; + } + } + + /// + /// RetireEmit + /// + public string RetireEmit + { + get + { + return _configData?.RetireEmit ?? ""; + } + } + + /// + /// 从配置加载数据(优先使用传入的配置实例) + /// + public void LoadFromConfig(int id, UserData config = null) + { + if (config == null) + { + config = ConfigManager.Instance.GetConfig(); + } + + if (config?.Userdatas != null) + { + config.Userdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 直接设置配置数据(性能优化:跳过字典查询) + /// + public void SetConfigData(UserDataItem configData) + { + _configData = configData; + } + + /// + /// 解析数据行(优化:使用 userData 传入的配置实例,避免重复调用 GetConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (!int.TryParse(dataRowString, out id)) + { + return false; + } + + // 性能优化:尝试从 userData 获取配置字典,直接获取 Item + if (userData is System.Collections.Generic.Dictionary userDataDict) + { + // 优先尝试从缓存的字典直接获取 Item(最快) + if (userDataDict.TryGetValue("ConfigDict", out object dictObj)) + { + var dict = dictObj as System.Collections.Generic.Dictionary; + if (dict != null && dict.TryGetValue(id, out var item)) + { + _configData = item; + return true; + } + } + + // 备选方案:从配置实例获取 + if (userDataDict.TryGetValue("ConfigInstance", out object configObj)) + { + var config = configObj as UserData; + if (config != null) + { + LoadFromConfig(id, config); + return _configData != null; + } + } + } + + // 兜底方案:直接查询(最慢) + LoadFromConfig(id); + return _configData != null; + } + } +} diff --git a/Scripts/DR_Generated/DRUserData.cs.meta b/Scripts/DR_Generated/DRUserData.cs.meta new file mode 100644 index 0000000..1932913 --- /dev/null +++ b/Scripts/DR_Generated/DRUserData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a39984cbc215c1344ad21b1da229766c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs index a0d3caf..e9036d0 100644 --- a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs @@ -41,6 +41,7 @@ namespace Byway.Thrift.Data public partial class AllConfigs : TBase { private global::Byway.Thrift.Data.MapBuilding _MapBuilding; + private global::Byway.Thrift.Data.UserData _UserData; private global::Byway.Thrift.Data.AdGiftData _AdGiftData; private global::Byway.Thrift.Data.BagItemConfig _BagItemConfig; private global::Byway.Thrift.Data.BonusValue _BonusValue; @@ -155,6 +156,20 @@ namespace Byway.Thrift.Data } } + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.UserData UserData + { + get + { + return _UserData; + } + set + { + __isset.UserData = true; + this._UserData = value; + } + } + [DataMember(Order = 0)] public global::Byway.Thrift.Data.AdGiftData AdGiftData { @@ -1550,6 +1565,8 @@ namespace Byway.Thrift.Data [DataMember] public bool MapBuilding; [DataMember] + public bool UserData; + [DataMember] public bool AdGiftData; [DataMember] public bool BagItemConfig; @@ -1756,6 +1773,11 @@ namespace Byway.Thrift.Data return __isset.MapBuilding; } + public bool ShouldSerializeUserData() + { + return __isset.UserData; + } + public bool ShouldSerializeAdGiftData() { return __isset.AdGiftData; @@ -2265,6 +2287,11 @@ namespace Byway.Thrift.Data tmp0.MapBuilding = (global::Byway.Thrift.Data.MapBuilding)this.MapBuilding.DeepCopy(); } tmp0.__isset.MapBuilding = this.__isset.MapBuilding; + if((UserData != null) && __isset.UserData) + { + tmp0.UserData = (global::Byway.Thrift.Data.UserData)this.UserData.DeepCopy(); + } + tmp0.__isset.UserData = this.__isset.UserData; if((AdGiftData != null) && __isset.AdGiftData) { tmp0.AdGiftData = (global::Byway.Thrift.Data.AdGiftData)this.AdGiftData.DeepCopy(); @@ -2792,6 +2819,17 @@ namespace Byway.Thrift.Data } break; case 2: + if (field.Type == TType.Struct) + { + UserData = new global::Byway.Thrift.Data.UserData(); + await UserData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: if (field.Type == TType.Struct) { AdGiftData = new global::Byway.Thrift.Data.AdGiftData(); @@ -2802,7 +2840,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 3: + case 4: if (field.Type == TType.Struct) { BagItemConfig = new global::Byway.Thrift.Data.BagItemConfig(); @@ -2813,7 +2851,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 4: + case 5: if (field.Type == TType.Struct) { BonusValue = new global::Byway.Thrift.Data.BonusValue(); @@ -2824,7 +2862,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 5: + case 6: if (field.Type == TType.Struct) { CardDetailCfg = new global::Byway.Thrift.Data.CardDetailCfg(); @@ -2835,7 +2873,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 6: + case 7: if (field.Type == TType.Struct) { CardPackCfg = new global::Byway.Thrift.Data.CardPackCfg(); @@ -2846,7 +2884,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 7: + case 8: if (field.Type == TType.Struct) { CardStickerExchangeCfg = new global::Byway.Thrift.Data.CardStickerExchangeCfg(); @@ -2857,7 +2895,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 8: + case 9: if (field.Type == TType.Struct) { CatsGardenMultiplyData = new global::Byway.Thrift.Data.CatsGardenMultiplyData(); @@ -2868,7 +2906,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 9: + case 10: if (field.Type == TType.Struct) { CatsGardenProgressData = new global::Byway.Thrift.Data.CatsGardenProgressData(); @@ -2879,7 +2917,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 10: + case 11: if (field.Type == TType.Struct) { CatsGardenSlotData = new global::Byway.Thrift.Data.CatsGardenSlotData(); @@ -2890,7 +2928,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 11: + case 12: if (field.Type == TType.Struct) { CatsGardenTempleteData = new global::Byway.Thrift.Data.CatsGardenTempleteData(); @@ -2901,7 +2939,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 12: + case 13: if (field.Type == TType.Struct) { ChampshipCfg = new global::Byway.Thrift.Data.ChampshipCfg(); @@ -2912,7 +2950,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 13: + case 14: if (field.Type == TType.Struct) { ChampshipRankReward = new global::Byway.Thrift.Data.ChampshipRankReward(); @@ -2923,7 +2961,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 14: + case 15: if (field.Type == TType.Struct) { ChampshipRankInfo = new global::Byway.Thrift.Data.ChampshipRankInfo(); @@ -2934,7 +2972,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 15: + case 16: if (field.Type == TType.Struct) { OrderScene = new global::Byway.Thrift.Data.OrderScene(); @@ -2945,7 +2983,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 16: + case 17: if (field.Type == TType.Struct) { ChampshipScoreReward = new global::Byway.Thrift.Data.ChampshipScoreReward(); @@ -2956,7 +2994,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 17: + case 18: if (field.Type == TType.Struct) { CollectionRoomReward = new global::Byway.Thrift.Data.CollectionRoomReward(); @@ -2967,7 +3005,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 18: + case 19: if (field.Type == TType.Struct) { CollectionsRewardsData = new global::Byway.Thrift.Data.CollectionsRewardsData(); @@ -2978,7 +3016,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 19: + case 20: if (field.Type == TType.Struct) { CollectionsUnlockLineData = new global::Byway.Thrift.Data.CollectionsUnlockLineData(); @@ -2989,7 +3027,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 20: + case 21: if (field.Type == TType.Struct) { ComboGift = new global::Byway.Thrift.Data.ComboGift(); @@ -3000,7 +3038,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 21: + case 22: if (field.Type == TType.Struct) { ComboGiftTwo = new global::Byway.Thrift.Data.ComboGiftTwo(); @@ -3011,7 +3049,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 22: + case 23: if (field.Type == TType.Struct) { DailyTaskActiveCfg = new global::Byway.Thrift.Data.DailyTaskActiveCfg(); @@ -3022,7 +3060,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 23: + case 24: if (field.Type == TType.Struct) { DailyTaskConfig = new global::Byway.Thrift.Data.DailyTaskConfig(); @@ -3033,7 +3071,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 24: + case 25: if (field.Type == TType.Struct) { DailyTaskDetail = new global::Byway.Thrift.Data.DailyTaskDetail(); @@ -3044,7 +3082,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 25: + case 26: if (field.Type == TType.Struct) { DailyTaskReward = new global::Byway.Thrift.Data.DailyTaskReward(); @@ -3055,7 +3093,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 26: + case 27: if (field.Type == TType.Struct) { DecorateCost = new global::Byway.Thrift.Data.DecorateCost(); @@ -3066,7 +3104,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 27: + case 28: if (field.Type == TType.Struct) { DecorateConst = new global::Byway.Thrift.Data.DecorateConst(); @@ -3077,7 +3115,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 28: + case 29: if (field.Type == TType.Struct) { DialogData = new global::Byway.Thrift.Data.DialogData(); @@ -3088,7 +3126,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 29: + case 30: if (field.Type == TType.Struct) { EmiterRetreatData = new global::Byway.Thrift.Data.EmiterRetreatData(); @@ -3099,7 +3137,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 30: + case 31: if (field.Type == TType.Struct) { EmojiData = new global::Byway.Thrift.Data.EmojiData(); @@ -3110,7 +3148,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 31: + case 32: if (field.Type == TType.Struct) { EndlessGift = new global::Byway.Thrift.Data.EndlessGift(); @@ -3121,7 +3159,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 32: + case 33: if (field.Type == TType.Struct) { EnergyLimitGift = new global::Byway.Thrift.Data.EnergyLimitGift(); @@ -3132,7 +3170,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 33: + case 34: if (field.Type == TType.Struct) { FrameData = new global::Byway.Thrift.Data.FrameData(); @@ -3143,7 +3181,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 34: + case 35: if (field.Type == TType.Struct) { GrowthFund = new global::Byway.Thrift.Data.GrowthFund(); @@ -3154,7 +3192,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 35: + case 36: if (field.Type == TType.Struct) { GuessReward = new global::Byway.Thrift.Data.GuessReward(); @@ -3165,7 +3203,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 36: + case 37: if (field.Type == TType.Struct) { GuideData = new global::Byway.Thrift.Data.GuideData(); @@ -3176,7 +3214,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 37: + case 38: if (field.Type == TType.Struct) { HandbookReward = new global::Byway.Thrift.Data.HandbookReward(); @@ -3187,7 +3225,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 38: + case 39: if (field.Type == TType.Struct) { HeadData = new global::Byway.Thrift.Data.HeadData(); @@ -3198,7 +3236,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 39: + case 40: if (field.Type == TType.Struct) { HowToPlay = new global::Byway.Thrift.Data.HowToPlay(); @@ -3209,7 +3247,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 40: + case 41: if (field.Type == TType.Struct) { IndoorProgress = new global::Byway.Thrift.Data.IndoorProgress(); @@ -3220,7 +3258,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 41: + case 42: if (field.Type == TType.Struct) { LanguageData = new global::Byway.Thrift.Data.LanguageData(); @@ -3231,7 +3269,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 42: + case 43: if (field.Type == TType.Struct) { LevelData = new global::Byway.Thrift.Data.LevelData(); @@ -3242,7 +3280,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 43: + case 44: if (field.Type == TType.Struct) { LuckyCatData = new global::Byway.Thrift.Data.LuckyCatData(); @@ -3253,7 +3291,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 44: + case 45: if (field.Type == TType.Struct) { LuckyCatProbability = new global::Byway.Thrift.Data.LuckyCatProbability(); @@ -3264,7 +3302,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 45: + case 46: if (field.Type == TType.Struct) { MainCardCollect = new global::Byway.Thrift.Data.MainCardCollect(); @@ -3275,7 +3313,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 46: + case 47: if (field.Type == TType.Struct) { MergeData = new global::Byway.Thrift.Data.MergeData(); @@ -3286,7 +3324,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 47: + case 48: if (field.Type == TType.Struct) { MileStoneDetail = new global::Byway.Thrift.Data.MileStoneDetail(); @@ -3297,7 +3335,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 48: + case 49: if (field.Type == TType.Struct) { MileStoneReward = new global::Byway.Thrift.Data.MileStoneReward(); @@ -3308,7 +3346,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 49: + case 50: if (field.Type == TType.Struct) { ChampshipJackpot = new global::Byway.Thrift.Data.ChampshipJackpot(); @@ -3319,7 +3357,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 50: + case 51: if (field.Type == TType.Struct) { MiningReward = new global::Byway.Thrift.Data.MiningReward(); @@ -3330,7 +3368,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 51: + case 52: if (field.Type == TType.Struct) { Music = new global::Byway.Thrift.Data.Music(); @@ -3341,7 +3379,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 52: + case 53: if (field.Type == TType.Struct) { NetAssetData = new global::Byway.Thrift.Data.NetAssetData(); @@ -3352,7 +3390,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 53: + case 54: if (field.Type == TType.Struct) { NetworkItemData = new global::Byway.Thrift.Data.NetworkItemData(); @@ -3363,7 +3401,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 54: + case 55: if (field.Type == TType.Struct) { NewbieDailyTaskCfg = new global::Byway.Thrift.Data.NewbieDailyTaskCfg(); @@ -3374,7 +3412,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 55: + case 56: if (field.Type == TType.Struct) { NewbieScoreCfg = new global::Byway.Thrift.Data.NewbieScoreCfg(); @@ -3385,7 +3423,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 56: + case 57: if (field.Type == TType.Struct) { NPCFriendsData = new global::Byway.Thrift.Data.NPCFriendsData(); @@ -3396,7 +3434,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 57: + case 58: if (field.Type == TType.Struct) { PassOne = new global::Byway.Thrift.Data.PassOne(); @@ -3407,7 +3445,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 58: + case 59: if (field.Type == TType.Struct) { PetAdWorkGift = new global::Byway.Thrift.Data.PetAdWorkGift(); @@ -3418,7 +3456,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 59: + case 60: if (field.Type == TType.Struct) { PetAirItem = new global::Byway.Thrift.Data.PetAirItem(); @@ -3429,7 +3467,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 60: + case 61: if (field.Type == TType.Struct) { PetCareItem = new global::Byway.Thrift.Data.PetCareItem(); @@ -3440,7 +3478,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 61: + case 62: if (field.Type == TType.Struct) { PetCoinGift = new global::Byway.Thrift.Data.PetCoinGift(); @@ -3451,7 +3489,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 62: + case 63: if (field.Type == TType.Struct) { PetDailyTaskCfg = new global::Byway.Thrift.Data.PetDailyTaskCfg(); @@ -3462,7 +3500,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 63: + case 64: if (field.Type == TType.Struct) { PetDressItem = new global::Byway.Thrift.Data.PetDressItem(); @@ -3473,7 +3511,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 64: + case 65: if (field.Type == TType.Struct) { PetHomeDecorateList = new global::Byway.Thrift.Data.PetHomeDecorateList(); @@ -3484,7 +3522,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 65: + case 66: if (field.Type == TType.Struct) { PetPlayJoyItem = new global::Byway.Thrift.Data.PetPlayJoyItem(); @@ -3495,7 +3533,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 66: + case 67: if (field.Type == TType.Struct) { PetRoomUnlockCfg = new global::Byway.Thrift.Data.PetRoomUnlockCfg(); @@ -3506,7 +3544,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 67: + case 68: if (field.Type == TType.Struct) { PetShopItem = new global::Byway.Thrift.Data.PetShopItem(); @@ -3517,7 +3555,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 68: + case 69: if (field.Type == TType.Struct) { PlayHomeDecorateCfg = new global::Byway.Thrift.Data.PlayHomeDecorateCfg(); @@ -3528,7 +3566,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 69: + case 70: if (field.Type == TType.Struct) { PromotionPack = new global::Byway.Thrift.Data.PromotionPack(); @@ -3539,7 +3577,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 70: + case 71: if (field.Type == TType.Struct) { RaceReward = new global::Byway.Thrift.Data.RaceReward(); @@ -3550,7 +3588,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 71: + case 72: if (field.Type == TType.Struct) { RankData = new global::Byway.Thrift.Data.RankData(); @@ -3561,7 +3599,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 72: + case 73: if (field.Type == TType.Struct) { RegionData = new global::Byway.Thrift.Data.RegionData(); @@ -3572,7 +3610,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 73: + case 74: if (field.Type == TType.Struct) { SceneData = new global::Byway.Thrift.Data.SceneData(); @@ -3583,7 +3621,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 74: + case 75: if (field.Type == TType.Struct) { SevenLoginCfg = new global::Byway.Thrift.Data.SevenLoginCfg(); @@ -3594,7 +3632,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 75: + case 76: if (field.Type == TType.Struct) { ShopItem = new global::Byway.Thrift.Data.ShopItem(); @@ -3605,7 +3643,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 76: + case 77: if (field.Type == TType.Struct) { ShopPack = new global::Byway.Thrift.Data.ShopPack(); @@ -3616,7 +3654,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 77: + case 78: if (field.Type == TType.Struct) { ShopSpecial = new global::Byway.Thrift.Data.ShopSpecial(); @@ -3627,7 +3665,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 78: + case 79: if (field.Type == TType.Struct) { SignInData = new global::Byway.Thrift.Data.SignInData(); @@ -3638,7 +3676,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 79: + case 80: if (field.Type == TType.Struct) { Sound = new global::Byway.Thrift.Data.Sound(); @@ -3649,7 +3687,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 80: + case 81: if (field.Type == TType.Struct) { StartMerge = new global::Byway.Thrift.Data.StartMerge(); @@ -3660,7 +3698,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 81: + case 82: if (field.Type == TType.Struct) { StartOrder = new global::Byway.Thrift.Data.StartOrder(); @@ -3671,7 +3709,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 82: + case 83: if (field.Type == TType.Struct) { TurnTableCfg = new global::Byway.Thrift.Data.TurnTableCfg(); @@ -3682,7 +3720,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 83: + case 84: if (field.Type == TType.Struct) { UIForm = new global::Byway.Thrift.Data.UIForm(); @@ -3693,7 +3731,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 84: + case 85: if (field.Type == TType.Struct) { WashStartMerge = new global::Byway.Thrift.Data.WashStartMerge(); @@ -3704,7 +3742,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 85: + case 86: if (field.Type == TType.Struct) { WeekTaskReward = new global::Byway.Thrift.Data.WeekTaskReward(); @@ -3715,7 +3753,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 86: + case 87: if (field.Type == TType.Struct) { LevelLauncherData = new global::Byway.Thrift.Data.LevelLauncherData(); @@ -3726,7 +3764,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 87: + case 88: if (field.Type == TType.Struct) { NickNameRandomData = new global::Byway.Thrift.Data.NickNameRandomData(); @@ -3737,7 +3775,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 88: + case 89: if (field.Type == TType.Struct) { ConstantString = new global::Byway.Thrift.Data.ConstantString(); @@ -3748,7 +3786,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 89: + case 90: if (field.Type == TType.Struct) { ConstantInt = new global::Byway.Thrift.Data.ConstantInt(); @@ -3759,7 +3797,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 90: + case 91: if (field.Type == TType.Struct) { GuideReward = new global::Byway.Thrift.Data.GuideReward(); @@ -3770,7 +3808,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 91: + case 92: if (field.Type == TType.Struct) { FriendConst = new global::Byway.Thrift.Data.FriendConst(); @@ -3781,7 +3819,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 92: + case 93: if (field.Type == TType.Struct) { ChargeConst = new global::Byway.Thrift.Data.ChargeConst(); @@ -3792,7 +3830,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 93: + case 94: if (field.Type == TType.Struct) { AmbientData = new global::Byway.Thrift.Data.AmbientData(); @@ -3803,7 +3841,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 94: + case 95: if (field.Type == TType.Struct) { FurShop = new global::Byway.Thrift.Data.FurShop(); @@ -3814,7 +3852,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 95: + case 96: if (field.Type == TType.Struct) { FakePlayroomDataMould = new global::Byway.Thrift.Data.FakePlayroomDataMould(); @@ -3825,7 +3863,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 96: + case 97: if (field.Type == TType.Struct) { LimitedTimeEventData = new global::Byway.Thrift.Data.LimitedTimeEventData(); @@ -3836,7 +3874,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 97: + case 98: if (field.Type == TType.Struct) { FriendInviteRewardData = new global::Byway.Thrift.Data.FriendInviteRewardData(); @@ -3847,7 +3885,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 98: + case 99: if (field.Type == TType.Struct) { LimitedTimeEventConst = new global::Byway.Thrift.Data.LimitedTimeEventConst(); @@ -3858,7 +3896,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 99: + case 100: if (field.Type == TType.Struct) { BuildingFeverDecorateOff = new global::Byway.Thrift.Data.BuildingFeverDecorateOff(); @@ -3869,7 +3907,7 @@ namespace Byway.Thrift.Data await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; - case 100: + case 101: if (field.Type == TType.Struct) { PLevelData = new global::Byway.Thrift.Data.PLevelData(); @@ -3913,11 +3951,20 @@ namespace Byway.Thrift.Data await MapBuilding.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if((UserData != null) && __isset.UserData) + { + tmp2.Name = "UserData"; + tmp2.Type = TType.Struct; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await UserData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } if((AdGiftData != null) && __isset.AdGiftData) { tmp2.Name = "AdGiftData"; tmp2.Type = TType.Struct; - tmp2.ID = 2; + tmp2.ID = 3; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await AdGiftData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3926,7 +3973,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "BagItemConfig"; tmp2.Type = TType.Struct; - tmp2.ID = 3; + tmp2.ID = 4; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await BagItemConfig.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3935,7 +3982,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "BonusValue"; tmp2.Type = TType.Struct; - tmp2.ID = 4; + tmp2.ID = 5; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await BonusValue.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3944,7 +3991,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CardDetailCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 5; + tmp2.ID = 6; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CardDetailCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3953,7 +4000,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CardPackCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 6; + tmp2.ID = 7; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CardPackCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3962,7 +4009,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CardStickerExchangeCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 7; + tmp2.ID = 8; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CardStickerExchangeCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3971,7 +4018,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CatsGardenMultiplyData"; tmp2.Type = TType.Struct; - tmp2.ID = 8; + tmp2.ID = 9; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CatsGardenMultiplyData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3980,7 +4027,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CatsGardenProgressData"; tmp2.Type = TType.Struct; - tmp2.ID = 9; + tmp2.ID = 10; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CatsGardenProgressData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3989,7 +4036,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CatsGardenSlotData"; tmp2.Type = TType.Struct; - tmp2.ID = 10; + tmp2.ID = 11; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CatsGardenSlotData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -3998,7 +4045,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CatsGardenTempleteData"; tmp2.Type = TType.Struct; - tmp2.ID = 11; + tmp2.ID = 12; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CatsGardenTempleteData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4007,7 +4054,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ChampshipCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 12; + tmp2.ID = 13; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ChampshipCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4016,7 +4063,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ChampshipRankReward"; tmp2.Type = TType.Struct; - tmp2.ID = 13; + tmp2.ID = 14; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ChampshipRankReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4025,7 +4072,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ChampshipRankInfo"; tmp2.Type = TType.Struct; - tmp2.ID = 14; + tmp2.ID = 15; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ChampshipRankInfo.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4034,7 +4081,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "OrderScene"; tmp2.Type = TType.Struct; - tmp2.ID = 15; + tmp2.ID = 16; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await OrderScene.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4043,7 +4090,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ChampshipScoreReward"; tmp2.Type = TType.Struct; - tmp2.ID = 16; + tmp2.ID = 17; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ChampshipScoreReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4052,7 +4099,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CollectionRoomReward"; tmp2.Type = TType.Struct; - tmp2.ID = 17; + tmp2.ID = 18; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CollectionRoomReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4061,7 +4108,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CollectionsRewardsData"; tmp2.Type = TType.Struct; - tmp2.ID = 18; + tmp2.ID = 19; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CollectionsRewardsData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4070,7 +4117,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "CollectionsUnlockLineData"; tmp2.Type = TType.Struct; - tmp2.ID = 19; + tmp2.ID = 20; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await CollectionsUnlockLineData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4079,7 +4126,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ComboGift"; tmp2.Type = TType.Struct; - tmp2.ID = 20; + tmp2.ID = 21; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ComboGift.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4088,7 +4135,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ComboGiftTwo"; tmp2.Type = TType.Struct; - tmp2.ID = 21; + tmp2.ID = 22; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ComboGiftTwo.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4097,7 +4144,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DailyTaskActiveCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 22; + tmp2.ID = 23; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DailyTaskActiveCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4106,7 +4153,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DailyTaskConfig"; tmp2.Type = TType.Struct; - tmp2.ID = 23; + tmp2.ID = 24; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DailyTaskConfig.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4115,7 +4162,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DailyTaskDetail"; tmp2.Type = TType.Struct; - tmp2.ID = 24; + tmp2.ID = 25; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DailyTaskDetail.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4124,7 +4171,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DailyTaskReward"; tmp2.Type = TType.Struct; - tmp2.ID = 25; + tmp2.ID = 26; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DailyTaskReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4133,7 +4180,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DecorateCost"; tmp2.Type = TType.Struct; - tmp2.ID = 26; + tmp2.ID = 27; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DecorateCost.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4142,7 +4189,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DecorateConst"; tmp2.Type = TType.Struct; - tmp2.ID = 27; + tmp2.ID = 28; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DecorateConst.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4151,7 +4198,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "DialogData"; tmp2.Type = TType.Struct; - tmp2.ID = 28; + tmp2.ID = 29; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await DialogData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4160,7 +4207,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "EmiterRetreatData"; tmp2.Type = TType.Struct; - tmp2.ID = 29; + tmp2.ID = 30; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await EmiterRetreatData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4169,7 +4216,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "EmojiData"; tmp2.Type = TType.Struct; - tmp2.ID = 30; + tmp2.ID = 31; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await EmojiData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4178,7 +4225,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "EndlessGift"; tmp2.Type = TType.Struct; - tmp2.ID = 31; + tmp2.ID = 32; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await EndlessGift.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4187,7 +4234,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "EnergyLimitGift"; tmp2.Type = TType.Struct; - tmp2.ID = 32; + tmp2.ID = 33; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await EnergyLimitGift.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4196,7 +4243,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "FrameData"; tmp2.Type = TType.Struct; - tmp2.ID = 33; + tmp2.ID = 34; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await FrameData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4205,7 +4252,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "GrowthFund"; tmp2.Type = TType.Struct; - tmp2.ID = 34; + tmp2.ID = 35; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await GrowthFund.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4214,7 +4261,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "GuessReward"; tmp2.Type = TType.Struct; - tmp2.ID = 35; + tmp2.ID = 36; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await GuessReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4223,7 +4270,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "GuideData"; tmp2.Type = TType.Struct; - tmp2.ID = 36; + tmp2.ID = 37; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await GuideData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4232,7 +4279,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "HandbookReward"; tmp2.Type = TType.Struct; - tmp2.ID = 37; + tmp2.ID = 38; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await HandbookReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4241,7 +4288,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "HeadData"; tmp2.Type = TType.Struct; - tmp2.ID = 38; + tmp2.ID = 39; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await HeadData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4250,7 +4297,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "HowToPlay"; tmp2.Type = TType.Struct; - tmp2.ID = 39; + tmp2.ID = 40; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await HowToPlay.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4259,7 +4306,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "IndoorProgress"; tmp2.Type = TType.Struct; - tmp2.ID = 40; + tmp2.ID = 41; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await IndoorProgress.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4268,7 +4315,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LanguageData"; tmp2.Type = TType.Struct; - tmp2.ID = 41; + tmp2.ID = 42; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LanguageData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4277,7 +4324,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LevelData"; tmp2.Type = TType.Struct; - tmp2.ID = 42; + tmp2.ID = 43; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LevelData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4286,7 +4333,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LuckyCatData"; tmp2.Type = TType.Struct; - tmp2.ID = 43; + tmp2.ID = 44; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LuckyCatData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4295,7 +4342,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LuckyCatProbability"; tmp2.Type = TType.Struct; - tmp2.ID = 44; + tmp2.ID = 45; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LuckyCatProbability.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4304,7 +4351,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "MainCardCollect"; tmp2.Type = TType.Struct; - tmp2.ID = 45; + tmp2.ID = 46; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await MainCardCollect.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4313,7 +4360,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "MergeData"; tmp2.Type = TType.Struct; - tmp2.ID = 46; + tmp2.ID = 47; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await MergeData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4322,7 +4369,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "MileStoneDetail"; tmp2.Type = TType.Struct; - tmp2.ID = 47; + tmp2.ID = 48; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await MileStoneDetail.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4331,7 +4378,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "MileStoneReward"; tmp2.Type = TType.Struct; - tmp2.ID = 48; + tmp2.ID = 49; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await MileStoneReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4340,7 +4387,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ChampshipJackpot"; tmp2.Type = TType.Struct; - tmp2.ID = 49; + tmp2.ID = 50; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ChampshipJackpot.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4349,7 +4396,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "MiningReward"; tmp2.Type = TType.Struct; - tmp2.ID = 50; + tmp2.ID = 51; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await MiningReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4358,7 +4405,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "Music"; tmp2.Type = TType.Struct; - tmp2.ID = 51; + tmp2.ID = 52; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await Music.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4367,7 +4414,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "NetAssetData"; tmp2.Type = TType.Struct; - tmp2.ID = 52; + tmp2.ID = 53; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await NetAssetData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4376,7 +4423,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "NetworkItemData"; tmp2.Type = TType.Struct; - tmp2.ID = 53; + tmp2.ID = 54; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await NetworkItemData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4385,7 +4432,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "NewbieDailyTaskCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 54; + tmp2.ID = 55; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await NewbieDailyTaskCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4394,7 +4441,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "NewbieScoreCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 55; + tmp2.ID = 56; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await NewbieScoreCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4403,7 +4450,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "NPCFriendsData"; tmp2.Type = TType.Struct; - tmp2.ID = 56; + tmp2.ID = 57; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await NPCFriendsData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4412,7 +4459,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PassOne"; tmp2.Type = TType.Struct; - tmp2.ID = 57; + tmp2.ID = 58; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PassOne.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4421,7 +4468,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetAdWorkGift"; tmp2.Type = TType.Struct; - tmp2.ID = 58; + tmp2.ID = 59; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetAdWorkGift.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4430,7 +4477,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetAirItem"; tmp2.Type = TType.Struct; - tmp2.ID = 59; + tmp2.ID = 60; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetAirItem.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4439,7 +4486,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetCareItem"; tmp2.Type = TType.Struct; - tmp2.ID = 60; + tmp2.ID = 61; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetCareItem.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4448,7 +4495,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetCoinGift"; tmp2.Type = TType.Struct; - tmp2.ID = 61; + tmp2.ID = 62; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetCoinGift.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4457,7 +4504,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetDailyTaskCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 62; + tmp2.ID = 63; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetDailyTaskCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4466,7 +4513,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetDressItem"; tmp2.Type = TType.Struct; - tmp2.ID = 63; + tmp2.ID = 64; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetDressItem.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4475,7 +4522,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetHomeDecorateList"; tmp2.Type = TType.Struct; - tmp2.ID = 64; + tmp2.ID = 65; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetHomeDecorateList.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4484,7 +4531,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetPlayJoyItem"; tmp2.Type = TType.Struct; - tmp2.ID = 65; + tmp2.ID = 66; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetPlayJoyItem.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4493,7 +4540,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetRoomUnlockCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 66; + tmp2.ID = 67; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetRoomUnlockCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4502,7 +4549,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PetShopItem"; tmp2.Type = TType.Struct; - tmp2.ID = 67; + tmp2.ID = 68; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PetShopItem.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4511,7 +4558,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PlayHomeDecorateCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 68; + tmp2.ID = 69; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PlayHomeDecorateCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4520,7 +4567,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PromotionPack"; tmp2.Type = TType.Struct; - tmp2.ID = 69; + tmp2.ID = 70; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PromotionPack.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4529,7 +4576,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "RaceReward"; tmp2.Type = TType.Struct; - tmp2.ID = 70; + tmp2.ID = 71; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await RaceReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4538,7 +4585,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "RankData"; tmp2.Type = TType.Struct; - tmp2.ID = 71; + tmp2.ID = 72; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await RankData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4547,7 +4594,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "RegionData"; tmp2.Type = TType.Struct; - tmp2.ID = 72; + tmp2.ID = 73; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await RegionData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4556,7 +4603,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "SceneData"; tmp2.Type = TType.Struct; - tmp2.ID = 73; + tmp2.ID = 74; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await SceneData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4565,7 +4612,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "SevenLoginCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 74; + tmp2.ID = 75; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await SevenLoginCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4574,7 +4621,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ShopItem"; tmp2.Type = TType.Struct; - tmp2.ID = 75; + tmp2.ID = 76; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ShopItem.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4583,7 +4630,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ShopPack"; tmp2.Type = TType.Struct; - tmp2.ID = 76; + tmp2.ID = 77; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ShopPack.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4592,7 +4639,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ShopSpecial"; tmp2.Type = TType.Struct; - tmp2.ID = 77; + tmp2.ID = 78; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ShopSpecial.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4601,7 +4648,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "SignInData"; tmp2.Type = TType.Struct; - tmp2.ID = 78; + tmp2.ID = 79; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await SignInData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4610,7 +4657,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "Sound"; tmp2.Type = TType.Struct; - tmp2.ID = 79; + tmp2.ID = 80; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await Sound.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4619,7 +4666,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "StartMerge"; tmp2.Type = TType.Struct; - tmp2.ID = 80; + tmp2.ID = 81; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await StartMerge.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4628,7 +4675,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "StartOrder"; tmp2.Type = TType.Struct; - tmp2.ID = 81; + tmp2.ID = 82; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await StartOrder.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4637,7 +4684,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "TurnTableCfg"; tmp2.Type = TType.Struct; - tmp2.ID = 82; + tmp2.ID = 83; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await TurnTableCfg.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4646,7 +4693,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "UIForm"; tmp2.Type = TType.Struct; - tmp2.ID = 83; + tmp2.ID = 84; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await UIForm.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4655,7 +4702,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "WashStartMerge"; tmp2.Type = TType.Struct; - tmp2.ID = 84; + tmp2.ID = 85; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await WashStartMerge.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4664,7 +4711,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "WeekTaskReward"; tmp2.Type = TType.Struct; - tmp2.ID = 85; + tmp2.ID = 86; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await WeekTaskReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4673,7 +4720,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LevelLauncherData"; tmp2.Type = TType.Struct; - tmp2.ID = 86; + tmp2.ID = 87; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LevelLauncherData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4682,7 +4729,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "NickNameRandomData"; tmp2.Type = TType.Struct; - tmp2.ID = 87; + tmp2.ID = 88; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await NickNameRandomData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4691,7 +4738,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ConstantString"; tmp2.Type = TType.Struct; - tmp2.ID = 88; + tmp2.ID = 89; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ConstantString.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4700,7 +4747,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ConstantInt"; tmp2.Type = TType.Struct; - tmp2.ID = 89; + tmp2.ID = 90; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ConstantInt.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4709,7 +4756,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "GuideReward"; tmp2.Type = TType.Struct; - tmp2.ID = 90; + tmp2.ID = 91; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await GuideReward.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4718,7 +4765,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "FriendConst"; tmp2.Type = TType.Struct; - tmp2.ID = 91; + tmp2.ID = 92; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await FriendConst.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4727,7 +4774,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "ChargeConst"; tmp2.Type = TType.Struct; - tmp2.ID = 92; + tmp2.ID = 93; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await ChargeConst.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4736,7 +4783,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "AmbientData"; tmp2.Type = TType.Struct; - tmp2.ID = 93; + tmp2.ID = 94; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await AmbientData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4745,7 +4792,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "FurShop"; tmp2.Type = TType.Struct; - tmp2.ID = 94; + tmp2.ID = 95; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await FurShop.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4754,7 +4801,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "FakePlayroomDataMould"; tmp2.Type = TType.Struct; - tmp2.ID = 95; + tmp2.ID = 96; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await FakePlayroomDataMould.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4763,7 +4810,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LimitedTimeEventData"; tmp2.Type = TType.Struct; - tmp2.ID = 96; + tmp2.ID = 97; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LimitedTimeEventData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4772,7 +4819,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "FriendInviteRewardData"; tmp2.Type = TType.Struct; - tmp2.ID = 97; + tmp2.ID = 98; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await FriendInviteRewardData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4781,7 +4828,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "LimitedTimeEventConst"; tmp2.Type = TType.Struct; - tmp2.ID = 98; + tmp2.ID = 99; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await LimitedTimeEventConst.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4790,7 +4837,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "BuildingFeverDecorateOff"; tmp2.Type = TType.Struct; - tmp2.ID = 99; + tmp2.ID = 100; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await BuildingFeverDecorateOff.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4799,7 +4846,7 @@ namespace Byway.Thrift.Data { tmp2.Name = "PLevelData"; tmp2.Type = TType.Struct; - tmp2.ID = 100; + tmp2.ID = 101; await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); await PLevelData.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); @@ -4818,6 +4865,7 @@ namespace Byway.Thrift.Data if (!(that is AllConfigs other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.MapBuilding == other.__isset.MapBuilding) && ((!__isset.MapBuilding) || (global::System.Object.Equals(MapBuilding, other.MapBuilding)))) + && ((__isset.UserData == other.__isset.UserData) && ((!__isset.UserData) || (global::System.Object.Equals(UserData, other.UserData)))) && ((__isset.AdGiftData == other.__isset.AdGiftData) && ((!__isset.AdGiftData) || (global::System.Object.Equals(AdGiftData, other.AdGiftData)))) && ((__isset.BagItemConfig == other.__isset.BagItemConfig) && ((!__isset.BagItemConfig) || (global::System.Object.Equals(BagItemConfig, other.BagItemConfig)))) && ((__isset.BonusValue == other.__isset.BonusValue) && ((!__isset.BonusValue) || (global::System.Object.Equals(BonusValue, other.BonusValue)))) @@ -4926,6 +4974,10 @@ namespace Byway.Thrift.Data { hashcode = (hashcode * 397) + MapBuilding.GetHashCode(); } + if((UserData != null) && __isset.UserData) + { + hashcode = (hashcode * 397) + UserData.GetHashCode(); + } if((AdGiftData != null) && __isset.AdGiftData) { hashcode = (hashcode * 397) + AdGiftData.GetHashCode(); @@ -5336,6 +5388,12 @@ namespace Byway.Thrift.Data tmp3.Append("MapBuilding: "); MapBuilding.ToString(tmp3); } + if((UserData != null) && __isset.UserData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("UserData: "); + UserData.ToString(tmp3); + } if((AdGiftData != null) && __isset.AdGiftData) { if(0 < tmp4++) { tmp3.Append(", "); } diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs new file mode 100644 index 0000000..9175379 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class UserDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs.meta new file mode 100644 index 0000000..385f606 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f6c3d3c67f74a5944a1539b5685a4114 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs new file mode 100644 index 0000000..22c1384 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class UserData : TBase + { + private Dictionary _userdatas; + + [DataMember(Order = 0)] + public Dictionary Userdatas + { + get + { + return _userdatas; + } + set + { + __isset.@userdatas = true; + this._userdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @userdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeUserdatas() + { + return __isset.@userdatas; + } + + #endregion XmlSerializer support + + public UserData() + { + } + + public UserData DeepCopy() + { + var tmp5 = new UserData(); + if((Userdatas != null) && __isset.@userdatas) + { + tmp5.Userdatas = this.Userdatas.DeepCopy(); + } + tmp5.__isset.@userdatas = this.__isset.@userdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Userdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.UserDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.UserDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Userdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("UserData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Userdatas != null) && __isset.@userdatas) + { + tmp11.Name = "userdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Userdatas.Count), cancellationToken); + foreach (int _iter12 in Userdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Userdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is UserData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@userdatas == other.__isset.@userdatas) && ((!__isset.@userdatas) || (TCollections.Equals(Userdatas, other.Userdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Userdatas != null) && __isset.@userdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Userdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("UserData("); + int tmp14 = 0; + if((Userdatas != null) && __isset.@userdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Userdatas: "); + Userdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs.meta new file mode 100644 index 0000000..30358f5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1e00192c8e1e2904783077340377b2d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs new file mode 100644 index 0000000..a9776ef --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs @@ -0,0 +1,594 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class UserDataItem : TBase + { + private int _Id; + private int _Lv; + private int _Exp; + private string _Item; + private int _EnergyMul; + private string _Reward_1; + private string _Reward_2; + private string _RetireEmit; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public int Exp + { + get + { + return _Exp; + } + set + { + __isset.Exp = true; + this._Exp = value; + } + } + + [DataMember(Order = 0)] + public string Item + { + get + { + return _Item; + } + set + { + __isset.Item = true; + this._Item = value; + } + } + + [DataMember(Order = 0)] + public int EnergyMul + { + get + { + return _EnergyMul; + } + set + { + __isset.EnergyMul = true; + this._EnergyMul = value; + } + } + + [DataMember(Order = 0)] + public string Reward_1 + { + get + { + return _Reward_1; + } + set + { + __isset.Reward_1 = true; + this._Reward_1 = value; + } + } + + [DataMember(Order = 0)] + public string Reward_2 + { + get + { + return _Reward_2; + } + set + { + __isset.Reward_2 = true; + this._Reward_2 = value; + } + } + + [DataMember(Order = 0)] + public string RetireEmit + { + get + { + return _RetireEmit; + } + set + { + __isset.RetireEmit = true; + this._RetireEmit = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool Exp; + [DataMember] + public bool Item; + [DataMember] + public bool EnergyMul; + [DataMember] + public bool Reward_1; + [DataMember] + public bool Reward_2; + [DataMember] + public bool RetireEmit; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeExp() + { + return __isset.Exp; + } + + public bool ShouldSerializeItem() + { + return __isset.Item; + } + + public bool ShouldSerializeEnergyMul() + { + return __isset.EnergyMul; + } + + public bool ShouldSerializeReward_1() + { + return __isset.Reward_1; + } + + public bool ShouldSerializeReward_2() + { + return __isset.Reward_2; + } + + public bool ShouldSerializeRetireEmit() + { + return __isset.RetireEmit; + } + + #endregion XmlSerializer support + + public UserDataItem() + { + } + + public UserDataItem DeepCopy() + { + var tmp0 = new UserDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if(__isset.Exp) + { + tmp0.Exp = this.Exp; + } + tmp0.__isset.Exp = this.__isset.Exp; + if((Item != null) && __isset.Item) + { + tmp0.Item = this.Item; + } + tmp0.__isset.Item = this.__isset.Item; + if(__isset.EnergyMul) + { + tmp0.EnergyMul = this.EnergyMul; + } + tmp0.__isset.EnergyMul = this.__isset.EnergyMul; + if((Reward_1 != null) && __isset.Reward_1) + { + tmp0.Reward_1 = this.Reward_1; + } + tmp0.__isset.Reward_1 = this.__isset.Reward_1; + if((Reward_2 != null) && __isset.Reward_2) + { + tmp0.Reward_2 = this.Reward_2; + } + tmp0.__isset.Reward_2 = this.__isset.Reward_2; + if((RetireEmit != null) && __isset.RetireEmit) + { + tmp0.RetireEmit = this.RetireEmit; + } + tmp0.__isset.RetireEmit = this.__isset.RetireEmit; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Exp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Item = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + EnergyMul = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Reward_1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Reward_2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + RetireEmit = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("UserDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Exp) + { + tmp2.Name = "Exp"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Exp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Item != null) && __isset.Item) + { + tmp2.Name = "Item"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Item, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.EnergyMul) + { + tmp2.Name = "EnergyMul"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(EnergyMul, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward_1 != null) && __isset.Reward_1) + { + tmp2.Name = "Reward_1"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward_1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward_2 != null) && __isset.Reward_2) + { + tmp2.Name = "Reward_2"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward_2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RetireEmit != null) && __isset.RetireEmit) + { + tmp2.Name = "RetireEmit"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RetireEmit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is UserDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp)))) + && ((__isset.Item == other.__isset.Item) && ((!__isset.Item) || (global::System.Object.Equals(Item, other.Item)))) + && ((__isset.EnergyMul == other.__isset.EnergyMul) && ((!__isset.EnergyMul) || (global::System.Object.Equals(EnergyMul, other.EnergyMul)))) + && ((__isset.Reward_1 == other.__isset.Reward_1) && ((!__isset.Reward_1) || (global::System.Object.Equals(Reward_1, other.Reward_1)))) + && ((__isset.Reward_2 == other.__isset.Reward_2) && ((!__isset.Reward_2) || (global::System.Object.Equals(Reward_2, other.Reward_2)))) + && ((__isset.RetireEmit == other.__isset.RetireEmit) && ((!__isset.RetireEmit) || (global::System.Object.Equals(RetireEmit, other.RetireEmit)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if(__isset.Exp) + { + hashcode = (hashcode * 397) + Exp.GetHashCode(); + } + if((Item != null) && __isset.Item) + { + hashcode = (hashcode * 397) + Item.GetHashCode(); + } + if(__isset.EnergyMul) + { + hashcode = (hashcode * 397) + EnergyMul.GetHashCode(); + } + if((Reward_1 != null) && __isset.Reward_1) + { + hashcode = (hashcode * 397) + Reward_1.GetHashCode(); + } + if((Reward_2 != null) && __isset.Reward_2) + { + hashcode = (hashcode * 397) + Reward_2.GetHashCode(); + } + if((RetireEmit != null) && __isset.RetireEmit) + { + hashcode = (hashcode * 397) + RetireEmit.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("UserDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if(__isset.Exp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Exp: "); + Exp.ToString(tmp3); + } + if((Item != null) && __isset.Item) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Item: "); + Item.ToString(tmp3); + } + if(__isset.EnergyMul) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EnergyMul: "); + EnergyMul.ToString(tmp3); + } + if((Reward_1 != null) && __isset.Reward_1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward_1: "); + Reward_1.ToString(tmp3); + } + if((Reward_2 != null) && __isset.Reward_2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward_2: "); + Reward_2.ToString(tmp3); + } + if((RetireEmit != null) && __isset.RetireEmit) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RetireEmit: "); + RetireEmit.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs.meta new file mode 100644 index 0000000..4f75254 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UserDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 48caa4f01b2666f469b07e0bce3cfa7b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: