表格更新

This commit is contained in:
zhang hongbo 2026-03-05 20:21:29 +08:00
parent 29b070a6d2
commit e5b90fa4d0
10 changed files with 85 additions and 961 deletions

Binary file not shown.

View File

@ -1,129 +0,0 @@
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
// 配置类: MultiLanguageResource
// 数据类: MultiLanguageResourceItem
using UnityEngine;
using Byway.Config;
using Byway.Thrift.Data;
using UnityGameFramework.Runtime;
namespace CrazyMaple
{
/// <summary>
/// MultiLanguageResource 数据行
/// </summary>
public class DRMultiLanguageResource : DataRowBase
{
private MultiLanguageResourceItem _configData;
/// <summary>
/// 唯一标识
/// </summary>
public override int Id
{
get
{
return _configData?.Id ?? 0;
}
}
/// <summary>
/// Key
/// </summary>
public string Key
{
get
{
return _configData?.Key ?? "";
}
}
/// <summary>
/// English
/// </summary>
public string English
{
get
{
return _configData?.English ?? "";
}
}
/// <summary>
/// ChineseSimplified
/// </summary>
public string ChineseSimplified
{
get
{
return _configData?.ChineseSimplified ?? "";
}
}
/// <summary>
/// 从配置加载数据(优先使用传入的配置实例)
/// </summary>
public void LoadFromConfig(int id, MultiLanguageResource config = null)
{
if (config == null)
{
config = ConfigManager.Instance.GetConfig<MultiLanguageResource>();
}
if (config?.Multilanguageresources != null)
{
config.Multilanguageresources.TryGetValue(id, out _configData);
}
}
/// <summary>
/// 直接设置配置数据(性能优化:跳过字典查询)
/// </summary>
public void SetConfigData(MultiLanguageResourceItem configData)
{
_configData = configData;
}
/// <summary>
/// 解析数据行(优化:使用 userData 传入的配置实例,避免重复调用 GetConfig
/// </summary>
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<string, object> userDataDict)
{
// 优先尝试从缓存的字典直接获取 Item最快
if (userDataDict.TryGetValue("ConfigDict", out object dictObj))
{
var dict = dictObj as System.Collections.Generic.Dictionary<int, MultiLanguageResourceItem>;
if (dict != null && dict.TryGetValue(id, out var item))
{
_configData = item;
return true;
}
}
// 备选方案:从配置实例获取
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
{
var config = configObj as MultiLanguageResource;
if (config != null)
{
LoadFromConfig(id, config);
return _configData != null;
}
}
}
// 兜底方案:直接查询(最慢)
LoadFromConfig(id);
return _configData != null;
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 7a7174960ee415a478453ea5ecef85f0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -86,7 +86,6 @@ namespace Byway.Thrift.Data
private global::Byway.Thrift.Data.MileStoneDetail _MileStoneDetail;
private global::Byway.Thrift.Data.MileStoneReward _MileStoneReward;
private global::Byway.Thrift.Data.MiningReward _MiningReward;
private global::Byway.Thrift.Data.MultiLanguageResource _MultiLanguageResource;
private global::Byway.Thrift.Data.Music _Music;
private global::Byway.Thrift.Data.NetAssetData _NetAssetData;
private global::Byway.Thrift.Data.NetworkItemData _NetworkItemData;
@ -775,20 +774,6 @@ namespace Byway.Thrift.Data
}
}
[DataMember(Order = 0)]
public global::Byway.Thrift.Data.MultiLanguageResource MultiLanguageResource
{
get
{
return _MultiLanguageResource;
}
set
{
__isset.MultiLanguageResource = true;
this._MultiLanguageResource = value;
}
}
[DataMember(Order = 0)]
public global::Byway.Thrift.Data.Music Music
{
@ -1490,8 +1475,6 @@ namespace Byway.Thrift.Data
[DataMember]
public bool MiningReward;
[DataMember]
public bool MultiLanguageResource;
[DataMember]
public bool Music;
[DataMember]
public bool NetAssetData;
@ -1811,11 +1794,6 @@ namespace Byway.Thrift.Data
return __isset.MiningReward;
}
public bool ShouldSerializeMultiLanguageResource()
{
return __isset.MultiLanguageResource;
}
public bool ShouldSerializeMusic()
{
return __isset.Music;
@ -2270,11 +2248,6 @@ namespace Byway.Thrift.Data
tmp0.MiningReward = (global::Byway.Thrift.Data.MiningReward)this.MiningReward.DeepCopy();
}
tmp0.__isset.MiningReward = this.__isset.MiningReward;
if((MultiLanguageResource != null) && __isset.MultiLanguageResource)
{
tmp0.MultiLanguageResource = (global::Byway.Thrift.Data.MultiLanguageResource)this.MultiLanguageResource.DeepCopy();
}
tmp0.__isset.MultiLanguageResource = this.__isset.MultiLanguageResource;
if((Music != null) && __isset.Music)
{
tmp0.Music = (global::Byway.Thrift.Data.Music)this.Music.DeepCopy();
@ -3017,17 +2990,6 @@ namespace Byway.Thrift.Data
}
break;
case 47:
if (field.Type == TType.Struct)
{
MultiLanguageResource = new global::Byway.Thrift.Data.MultiLanguageResource();
await MultiLanguageResource.ReadAsync(iprot, cancellationToken);
}
else
{
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 48:
if (field.Type == TType.Struct)
{
Music = new global::Byway.Thrift.Data.Music();
@ -3038,7 +3000,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 49:
case 48:
if (field.Type == TType.Struct)
{
NetAssetData = new global::Byway.Thrift.Data.NetAssetData();
@ -3049,7 +3011,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 50:
case 49:
if (field.Type == TType.Struct)
{
NetworkItemData = new global::Byway.Thrift.Data.NetworkItemData();
@ -3060,7 +3022,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 51:
case 50:
if (field.Type == TType.Struct)
{
NewbieDailyTaskCfg = new global::Byway.Thrift.Data.NewbieDailyTaskCfg();
@ -3071,7 +3033,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 52:
case 51:
if (field.Type == TType.Struct)
{
NewbieScoreCfg = new global::Byway.Thrift.Data.NewbieScoreCfg();
@ -3082,7 +3044,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 53:
case 52:
if (field.Type == TType.Struct)
{
NPCFriendsData = new global::Byway.Thrift.Data.NPCFriendsData();
@ -3093,7 +3055,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 54:
case 53:
if (field.Type == TType.Struct)
{
PassOne = new global::Byway.Thrift.Data.PassOne();
@ -3104,7 +3066,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 55:
case 54:
if (field.Type == TType.Struct)
{
PetAdWorkGift = new global::Byway.Thrift.Data.PetAdWorkGift();
@ -3115,7 +3077,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 56:
case 55:
if (field.Type == TType.Struct)
{
PetAirItem = new global::Byway.Thrift.Data.PetAirItem();
@ -3126,7 +3088,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 57:
case 56:
if (field.Type == TType.Struct)
{
PetCareItem = new global::Byway.Thrift.Data.PetCareItem();
@ -3137,7 +3099,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 58:
case 57:
if (field.Type == TType.Struct)
{
PetCoinGift = new global::Byway.Thrift.Data.PetCoinGift();
@ -3148,7 +3110,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 59:
case 58:
if (field.Type == TType.Struct)
{
PetDailyTaskCfg = new global::Byway.Thrift.Data.PetDailyTaskCfg();
@ -3159,7 +3121,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 60:
case 59:
if (field.Type == TType.Struct)
{
PetDressItem = new global::Byway.Thrift.Data.PetDressItem();
@ -3170,7 +3132,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 61:
case 60:
if (field.Type == TType.Struct)
{
PetHomeDecorateList = new global::Byway.Thrift.Data.PetHomeDecorateList();
@ -3181,7 +3143,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 62:
case 61:
if (field.Type == TType.Struct)
{
PetPlayJoyItem = new global::Byway.Thrift.Data.PetPlayJoyItem();
@ -3192,7 +3154,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 63:
case 62:
if (field.Type == TType.Struct)
{
PetRoomUnlockCfg = new global::Byway.Thrift.Data.PetRoomUnlockCfg();
@ -3203,7 +3165,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 64:
case 63:
if (field.Type == TType.Struct)
{
PetShopItem = new global::Byway.Thrift.Data.PetShopItem();
@ -3214,7 +3176,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 65:
case 64:
if (field.Type == TType.Struct)
{
PlayHomeDecorateCfg = new global::Byway.Thrift.Data.PlayHomeDecorateCfg();
@ -3225,7 +3187,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 66:
case 65:
if (field.Type == TType.Struct)
{
PromotionPack = new global::Byway.Thrift.Data.PromotionPack();
@ -3236,7 +3198,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 67:
case 66:
if (field.Type == TType.Struct)
{
RaceReward = new global::Byway.Thrift.Data.RaceReward();
@ -3247,7 +3209,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 68:
case 67:
if (field.Type == TType.Struct)
{
RankData = new global::Byway.Thrift.Data.RankData();
@ -3258,7 +3220,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 69:
case 68:
if (field.Type == TType.Struct)
{
RegionData = new global::Byway.Thrift.Data.RegionData();
@ -3269,7 +3231,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 70:
case 69:
if (field.Type == TType.Struct)
{
SceneData = new global::Byway.Thrift.Data.SceneData();
@ -3280,7 +3242,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 71:
case 70:
if (field.Type == TType.Struct)
{
SevenLoginCfg = new global::Byway.Thrift.Data.SevenLoginCfg();
@ -3291,7 +3253,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 72:
case 71:
if (field.Type == TType.Struct)
{
ShopItem = new global::Byway.Thrift.Data.ShopItem();
@ -3302,7 +3264,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 73:
case 72:
if (field.Type == TType.Struct)
{
ShopPack = new global::Byway.Thrift.Data.ShopPack();
@ -3313,7 +3275,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 74:
case 73:
if (field.Type == TType.Struct)
{
ShopSpecial = new global::Byway.Thrift.Data.ShopSpecial();
@ -3324,7 +3286,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 75:
case 74:
if (field.Type == TType.Struct)
{
SignInData = new global::Byway.Thrift.Data.SignInData();
@ -3335,7 +3297,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 76:
case 75:
if (field.Type == TType.Struct)
{
Sound = new global::Byway.Thrift.Data.Sound();
@ -3346,7 +3308,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 77:
case 76:
if (field.Type == TType.Struct)
{
StartMerge = new global::Byway.Thrift.Data.StartMerge();
@ -3357,7 +3319,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 78:
case 77:
if (field.Type == TType.Struct)
{
StartOrder = new global::Byway.Thrift.Data.StartOrder();
@ -3368,7 +3330,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 79:
case 78:
if (field.Type == TType.Struct)
{
TurnTableCfg = new global::Byway.Thrift.Data.TurnTableCfg();
@ -3379,7 +3341,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 80:
case 79:
if (field.Type == TType.Struct)
{
UIForm = new global::Byway.Thrift.Data.UIForm();
@ -3390,7 +3352,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 81:
case 80:
if (field.Type == TType.Struct)
{
WashStartMerge = new global::Byway.Thrift.Data.WashStartMerge();
@ -3401,7 +3363,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 82:
case 81:
if (field.Type == TType.Struct)
{
WeekTaskReward = new global::Byway.Thrift.Data.WeekTaskReward();
@ -3412,7 +3374,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 83:
case 82:
if (field.Type == TType.Struct)
{
LevelLauncherData = new global::Byway.Thrift.Data.LevelLauncherData();
@ -3423,7 +3385,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 84:
case 83:
if (field.Type == TType.Struct)
{
NickNameRandomData = new global::Byway.Thrift.Data.NickNameRandomData();
@ -3434,7 +3396,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 85:
case 84:
if (field.Type == TType.Struct)
{
ConstantString = new global::Byway.Thrift.Data.ConstantString();
@ -3445,7 +3407,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 86:
case 85:
if (field.Type == TType.Struct)
{
GuideReward = new global::Byway.Thrift.Data.GuideReward();
@ -3456,7 +3418,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 87:
case 86:
if (field.Type == TType.Struct)
{
FriendConst = new global::Byway.Thrift.Data.FriendConst();
@ -3467,7 +3429,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 88:
case 87:
if (field.Type == TType.Struct)
{
ChargeConst = new global::Byway.Thrift.Data.ChargeConst();
@ -3478,7 +3440,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 89:
case 88:
if (field.Type == TType.Struct)
{
AmbientData = new global::Byway.Thrift.Data.AmbientData();
@ -3489,7 +3451,7 @@ namespace Byway.Thrift.Data
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 90:
case 89:
if (field.Type == TType.Struct)
{
FurShop = new global::Byway.Thrift.Data.FurShop();
@ -3938,20 +3900,11 @@ namespace Byway.Thrift.Data
await MiningReward.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
}
if((MultiLanguageResource != null) && __isset.MultiLanguageResource)
{
tmp2.Name = "MultiLanguageResource";
tmp2.Type = TType.Struct;
tmp2.ID = 47;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await MultiLanguageResource.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
}
if((Music != null) && __isset.Music)
{
tmp2.Name = "Music";
tmp2.Type = TType.Struct;
tmp2.ID = 48;
tmp2.ID = 47;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await Music.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -3960,7 +3913,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "NetAssetData";
tmp2.Type = TType.Struct;
tmp2.ID = 49;
tmp2.ID = 48;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await NetAssetData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -3969,7 +3922,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "NetworkItemData";
tmp2.Type = TType.Struct;
tmp2.ID = 50;
tmp2.ID = 49;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await NetworkItemData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -3978,7 +3931,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "NewbieDailyTaskCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 51;
tmp2.ID = 50;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await NewbieDailyTaskCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -3987,7 +3940,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "NewbieScoreCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 52;
tmp2.ID = 51;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await NewbieScoreCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -3996,7 +3949,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "NPCFriendsData";
tmp2.Type = TType.Struct;
tmp2.ID = 53;
tmp2.ID = 52;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await NPCFriendsData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4005,7 +3958,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PassOne";
tmp2.Type = TType.Struct;
tmp2.ID = 54;
tmp2.ID = 53;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PassOne.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4014,7 +3967,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetAdWorkGift";
tmp2.Type = TType.Struct;
tmp2.ID = 55;
tmp2.ID = 54;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetAdWorkGift.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4023,7 +3976,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetAirItem";
tmp2.Type = TType.Struct;
tmp2.ID = 56;
tmp2.ID = 55;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetAirItem.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4032,7 +3985,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetCareItem";
tmp2.Type = TType.Struct;
tmp2.ID = 57;
tmp2.ID = 56;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetCareItem.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4041,7 +3994,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetCoinGift";
tmp2.Type = TType.Struct;
tmp2.ID = 58;
tmp2.ID = 57;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetCoinGift.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4050,7 +4003,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetDailyTaskCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 59;
tmp2.ID = 58;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetDailyTaskCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4059,7 +4012,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetDressItem";
tmp2.Type = TType.Struct;
tmp2.ID = 60;
tmp2.ID = 59;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetDressItem.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4068,7 +4021,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetHomeDecorateList";
tmp2.Type = TType.Struct;
tmp2.ID = 61;
tmp2.ID = 60;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetHomeDecorateList.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4077,7 +4030,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetPlayJoyItem";
tmp2.Type = TType.Struct;
tmp2.ID = 62;
tmp2.ID = 61;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetPlayJoyItem.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4086,7 +4039,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetRoomUnlockCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 63;
tmp2.ID = 62;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetRoomUnlockCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4095,7 +4048,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PetShopItem";
tmp2.Type = TType.Struct;
tmp2.ID = 64;
tmp2.ID = 63;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PetShopItem.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4104,7 +4057,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PlayHomeDecorateCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 65;
tmp2.ID = 64;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PlayHomeDecorateCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4113,7 +4066,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "PromotionPack";
tmp2.Type = TType.Struct;
tmp2.ID = 66;
tmp2.ID = 65;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await PromotionPack.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4122,7 +4075,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "RaceReward";
tmp2.Type = TType.Struct;
tmp2.ID = 67;
tmp2.ID = 66;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await RaceReward.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4131,7 +4084,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "RankData";
tmp2.Type = TType.Struct;
tmp2.ID = 68;
tmp2.ID = 67;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await RankData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4140,7 +4093,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "RegionData";
tmp2.Type = TType.Struct;
tmp2.ID = 69;
tmp2.ID = 68;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await RegionData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4149,7 +4102,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "SceneData";
tmp2.Type = TType.Struct;
tmp2.ID = 70;
tmp2.ID = 69;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await SceneData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4158,7 +4111,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "SevenLoginCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 71;
tmp2.ID = 70;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await SevenLoginCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4167,7 +4120,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "ShopItem";
tmp2.Type = TType.Struct;
tmp2.ID = 72;
tmp2.ID = 71;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await ShopItem.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4176,7 +4129,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "ShopPack";
tmp2.Type = TType.Struct;
tmp2.ID = 73;
tmp2.ID = 72;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await ShopPack.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4185,7 +4138,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "ShopSpecial";
tmp2.Type = TType.Struct;
tmp2.ID = 74;
tmp2.ID = 73;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await ShopSpecial.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4194,7 +4147,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "SignInData";
tmp2.Type = TType.Struct;
tmp2.ID = 75;
tmp2.ID = 74;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await SignInData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4203,7 +4156,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "Sound";
tmp2.Type = TType.Struct;
tmp2.ID = 76;
tmp2.ID = 75;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await Sound.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4212,7 +4165,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "StartMerge";
tmp2.Type = TType.Struct;
tmp2.ID = 77;
tmp2.ID = 76;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await StartMerge.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4221,7 +4174,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "StartOrder";
tmp2.Type = TType.Struct;
tmp2.ID = 78;
tmp2.ID = 77;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await StartOrder.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4230,7 +4183,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "TurnTableCfg";
tmp2.Type = TType.Struct;
tmp2.ID = 79;
tmp2.ID = 78;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await TurnTableCfg.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4239,7 +4192,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "UIForm";
tmp2.Type = TType.Struct;
tmp2.ID = 80;
tmp2.ID = 79;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await UIForm.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4248,7 +4201,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "WashStartMerge";
tmp2.Type = TType.Struct;
tmp2.ID = 81;
tmp2.ID = 80;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await WashStartMerge.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4257,7 +4210,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "WeekTaskReward";
tmp2.Type = TType.Struct;
tmp2.ID = 82;
tmp2.ID = 81;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await WeekTaskReward.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4266,7 +4219,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "LevelLauncherData";
tmp2.Type = TType.Struct;
tmp2.ID = 83;
tmp2.ID = 82;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await LevelLauncherData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4275,7 +4228,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "NickNameRandomData";
tmp2.Type = TType.Struct;
tmp2.ID = 84;
tmp2.ID = 83;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await NickNameRandomData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4284,7 +4237,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "ConstantString";
tmp2.Type = TType.Struct;
tmp2.ID = 85;
tmp2.ID = 84;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await ConstantString.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4293,7 +4246,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "GuideReward";
tmp2.Type = TType.Struct;
tmp2.ID = 86;
tmp2.ID = 85;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await GuideReward.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4302,7 +4255,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "FriendConst";
tmp2.Type = TType.Struct;
tmp2.ID = 87;
tmp2.ID = 86;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await FriendConst.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4311,7 +4264,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "ChargeConst";
tmp2.Type = TType.Struct;
tmp2.ID = 88;
tmp2.ID = 87;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await ChargeConst.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4320,7 +4273,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "AmbientData";
tmp2.Type = TType.Struct;
tmp2.ID = 89;
tmp2.ID = 88;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await AmbientData.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4329,7 +4282,7 @@ namespace Byway.Thrift.Data
{
tmp2.Name = "FurShop";
tmp2.Type = TType.Struct;
tmp2.ID = 90;
tmp2.ID = 89;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await FurShop.WriteAsync(oprot, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
@ -4393,7 +4346,6 @@ namespace Byway.Thrift.Data
&& ((__isset.MileStoneDetail == other.__isset.MileStoneDetail) && ((!__isset.MileStoneDetail) || (global::System.Object.Equals(MileStoneDetail, other.MileStoneDetail))))
&& ((__isset.MileStoneReward == other.__isset.MileStoneReward) && ((!__isset.MileStoneReward) || (global::System.Object.Equals(MileStoneReward, other.MileStoneReward))))
&& ((__isset.MiningReward == other.__isset.MiningReward) && ((!__isset.MiningReward) || (global::System.Object.Equals(MiningReward, other.MiningReward))))
&& ((__isset.MultiLanguageResource == other.__isset.MultiLanguageResource) && ((!__isset.MultiLanguageResource) || (global::System.Object.Equals(MultiLanguageResource, other.MultiLanguageResource))))
&& ((__isset.Music == other.__isset.Music) && ((!__isset.Music) || (global::System.Object.Equals(Music, other.Music))))
&& ((__isset.NetAssetData == other.__isset.NetAssetData) && ((!__isset.NetAssetData) || (global::System.Object.Equals(NetAssetData, other.NetAssetData))))
&& ((__isset.NetworkItemData == other.__isset.NetworkItemData) && ((!__isset.NetworkItemData) || (global::System.Object.Equals(NetworkItemData, other.NetworkItemData))))
@ -4626,10 +4578,6 @@ namespace Byway.Thrift.Data
{
hashcode = (hashcode * 397) + MiningReward.GetHashCode();
}
if((MultiLanguageResource != null) && __isset.MultiLanguageResource)
{
hashcode = (hashcode * 397) + MultiLanguageResource.GetHashCode();
}
if((Music != null) && __isset.Music)
{
hashcode = (hashcode * 397) + Music.GetHashCode();
@ -5086,12 +5034,6 @@ namespace Byway.Thrift.Data
tmp3.Append("MiningReward: ");
MiningReward.ToString(tmp3);
}
if((MultiLanguageResource != null) && __isset.MultiLanguageResource)
{
if(0 < tmp4++) { tmp3.Append(", "); }
tmp3.Append("MultiLanguageResource: ");
MultiLanguageResource.ToString(tmp3);
}
if((Music != null) && __isset.Music)
{
if(0 < tmp4++) { tmp3.Append(", "); }

View File

@ -1,65 +0,0 @@
/**
* <auto-generated>
* Autogenerated by Thrift Compiler (0.22.0)
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* </auto-generated>
*/
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 MultiLanguageResourceExtensions
{
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> instance, object that)
{
if (!(that is Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> instance)
{
return TCollections.GetHashCode(instance);
}
public static Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> source)
{
if (source == null)
return null;
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem>(source.Count);
foreach (var pair in source)
tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null);
return tmp15;
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 1aefd028da0e5a94f9b72ce6f411e247
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,214 +0,0 @@
/**
* <auto-generated>
* Autogenerated by Thrift Compiler (0.22.0)
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* </auto-generated>
*/
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 MultiLanguageResource : TBase
{
private Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> _multilanguageresources;
[DataMember(Order = 0)]
public Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem> Multilanguageresources
{
get
{
return _multilanguageresources;
}
set
{
__isset.@multilanguageresources = true;
this._multilanguageresources = value;
}
}
[DataMember(Order = 1)]
public Isset __isset;
[DataContract]
public struct Isset
{
[DataMember]
public bool @multilanguageresources;
}
#region XmlSerializer support
public bool ShouldSerializeMultilanguageresources()
{
return __isset.@multilanguageresources;
}
#endregion XmlSerializer support
public MultiLanguageResource()
{
}
public MultiLanguageResource DeepCopy()
{
var tmp5 = new MultiLanguageResource();
if((Multilanguageresources != null) && __isset.@multilanguageresources)
{
tmp5.Multilanguageresources = this.Multilanguageresources.DeepCopy();
}
tmp5.__isset.@multilanguageresources = this.__isset.@multilanguageresources;
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);
Multilanguageresources = new Dictionary<int, global::Byway.Thrift.Data.MultiLanguageResourceItem>(_map6.Count);
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
{
int _key8;
global::Byway.Thrift.Data.MultiLanguageResourceItem _val9;
_key8 = await iprot.ReadI32Async(cancellationToken);
_val9 = new global::Byway.Thrift.Data.MultiLanguageResourceItem();
await _val9.ReadAsync(iprot, cancellationToken);
Multilanguageresources[_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("MultiLanguageResource");
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
var tmp11 = new TField();
if((Multilanguageresources != null) && __isset.@multilanguageresources)
{
tmp11.Name = "multilanguageresources";
tmp11.Type = TType.Map;
tmp11.ID = 1;
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Multilanguageresources.Count), cancellationToken);
foreach (int _iter12 in Multilanguageresources.Keys)
{
await oprot.WriteI32Async(_iter12, cancellationToken);
await Multilanguageresources[_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 MultiLanguageResource other)) return false;
if (ReferenceEquals(this, other)) return true;
return ((__isset.@multilanguageresources == other.__isset.@multilanguageresources) && ((!__isset.@multilanguageresources) || (TCollections.Equals(Multilanguageresources, other.Multilanguageresources))));
}
public override int GetHashCode() {
int hashcode = 157;
unchecked {
if((Multilanguageresources != null) && __isset.@multilanguageresources)
{
hashcode = (hashcode * 397) + TCollections.GetHashCode(Multilanguageresources);
}
}
return hashcode;
}
public override string ToString()
{
var tmp13 = new StringBuilder("MultiLanguageResource(");
int tmp14 = 0;
if((Multilanguageresources != null) && __isset.@multilanguageresources)
{
if(0 < tmp14++) { tmp13.Append(", "); }
tmp13.Append("Multilanguageresources: ");
Multilanguageresources.ToString(tmp13);
}
tmp13.Append(')');
return tmp13.ToString();
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: f953506a9b78d5947a95b5e22b184edb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,366 +0,0 @@
/**
* <auto-generated>
* Autogenerated by Thrift Compiler (0.22.0)
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* </auto-generated>
*/
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 MultiLanguageResourceItem : TBase
{
private int _Id;
private string _Key;
private string _English;
private string _ChineseSimplified;
[DataMember(Order = 0)]
public int Id
{
get
{
return _Id;
}
set
{
__isset.Id = true;
this._Id = value;
}
}
[DataMember(Order = 0)]
public string Key
{
get
{
return _Key;
}
set
{
__isset.Key = true;
this._Key = value;
}
}
[DataMember(Order = 0)]
public string English
{
get
{
return _English;
}
set
{
__isset.English = true;
this._English = value;
}
}
[DataMember(Order = 0)]
public string ChineseSimplified
{
get
{
return _ChineseSimplified;
}
set
{
__isset.ChineseSimplified = true;
this._ChineseSimplified = value;
}
}
[DataMember(Order = 1)]
public Isset __isset;
[DataContract]
public struct Isset
{
[DataMember]
public bool Id;
[DataMember]
public bool Key;
[DataMember]
public bool English;
[DataMember]
public bool ChineseSimplified;
}
#region XmlSerializer support
public bool ShouldSerializeId()
{
return __isset.Id;
}
public bool ShouldSerializeKey()
{
return __isset.Key;
}
public bool ShouldSerializeEnglish()
{
return __isset.English;
}
public bool ShouldSerializeChineseSimplified()
{
return __isset.ChineseSimplified;
}
#endregion XmlSerializer support
public MultiLanguageResourceItem()
{
}
public MultiLanguageResourceItem DeepCopy()
{
var tmp0 = new MultiLanguageResourceItem();
if(__isset.Id)
{
tmp0.Id = this.Id;
}
tmp0.__isset.Id = this.__isset.Id;
if((Key != null) && __isset.Key)
{
tmp0.Key = this.Key;
}
tmp0.__isset.Key = this.__isset.Key;
if((English != null) && __isset.English)
{
tmp0.English = this.English;
}
tmp0.__isset.English = this.__isset.English;
if((ChineseSimplified != null) && __isset.ChineseSimplified)
{
tmp0.ChineseSimplified = this.ChineseSimplified;
}
tmp0.__isset.ChineseSimplified = this.__isset.ChineseSimplified;
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.String)
{
Key = await iprot.ReadStringAsync(cancellationToken);
}
else
{
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 3:
if (field.Type == TType.String)
{
English = await iprot.ReadStringAsync(cancellationToken);
}
else
{
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
}
break;
case 4:
if (field.Type == TType.String)
{
ChineseSimplified = 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("MultiLanguageResourceItem");
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((Key != null) && __isset.Key)
{
tmp2.Name = "Key";
tmp2.Type = TType.String;
tmp2.ID = 2;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await oprot.WriteStringAsync(Key, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
}
if((English != null) && __isset.English)
{
tmp2.Name = "English";
tmp2.Type = TType.String;
tmp2.ID = 3;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await oprot.WriteStringAsync(English, cancellationToken);
await oprot.WriteFieldEndAsync(cancellationToken);
}
if((ChineseSimplified != null) && __isset.ChineseSimplified)
{
tmp2.Name = "ChineseSimplified";
tmp2.Type = TType.String;
tmp2.ID = 4;
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
await oprot.WriteStringAsync(ChineseSimplified, 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 MultiLanguageResourceItem 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.Key == other.__isset.Key) && ((!__isset.Key) || (global::System.Object.Equals(Key, other.Key))))
&& ((__isset.English == other.__isset.English) && ((!__isset.English) || (global::System.Object.Equals(English, other.English))))
&& ((__isset.ChineseSimplified == other.__isset.ChineseSimplified) && ((!__isset.ChineseSimplified) || (global::System.Object.Equals(ChineseSimplified, other.ChineseSimplified))));
}
public override int GetHashCode() {
int hashcode = 157;
unchecked {
if(__isset.Id)
{
hashcode = (hashcode * 397) + Id.GetHashCode();
}
if((Key != null) && __isset.Key)
{
hashcode = (hashcode * 397) + Key.GetHashCode();
}
if((English != null) && __isset.English)
{
hashcode = (hashcode * 397) + English.GetHashCode();
}
if((ChineseSimplified != null) && __isset.ChineseSimplified)
{
hashcode = (hashcode * 397) + ChineseSimplified.GetHashCode();
}
}
return hashcode;
}
public override string ToString()
{
var tmp3 = new StringBuilder("MultiLanguageResourceItem(");
int tmp4 = 0;
if(__isset.Id)
{
if(0 < tmp4++) { tmp3.Append(", "); }
tmp3.Append("Id: ");
Id.ToString(tmp3);
}
if((Key != null) && __isset.Key)
{
if(0 < tmp4++) { tmp3.Append(", "); }
tmp3.Append("Key: ");
Key.ToString(tmp3);
}
if((English != null) && __isset.English)
{
if(0 < tmp4++) { tmp3.Append(", "); }
tmp3.Append("English: ");
English.ToString(tmp3);
}
if((ChineseSimplified != null) && __isset.ChineseSimplified)
{
if(0 < tmp4++) { tmp3.Append(", "); }
tmp3.Append("ChineseSimplified: ");
ChineseSimplified.ToString(tmp3);
}
tmp3.Append(')');
return tmp3.ToString();
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: bccf051b39b1aa44db5f47d3e418859a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: