配置表更新
This commit is contained in:
parent
e984fb5aea
commit
eaeec28941
Binary file not shown.
151
Scripts/DR_Generated/DRFakePlayroomDataMould.cs
Normal file
151
Scripts/DR_Generated/DRFakePlayroomDataMould.cs
Normal file
@ -0,0 +1,151 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: FakePlayroomDataMould
|
||||
// 数据类: FakePlayroomDataMouldItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// FakePlayroomDataMould 数据行
|
||||
/// </summary>
|
||||
public class DRFakePlayroomDataMould : DataRowBase
|
||||
{
|
||||
private FakePlayroomDataMouldItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Language
|
||||
/// </summary>
|
||||
public string Language
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Language ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PetName
|
||||
/// </summary>
|
||||
public string PetName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.PetName ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CatMould
|
||||
/// </summary>
|
||||
public string CatMould
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.CatMould ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PlayroomMould
|
||||
/// </summary>
|
||||
public string PlayroomMould
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.PlayroomMould ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ActivityType
|
||||
/// </summary>
|
||||
public int ActivityType
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.ActivityType ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, FakePlayroomDataMould config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<FakePlayroomDataMould>();
|
||||
}
|
||||
|
||||
if (config?.Fakeplayroomdatamoulds != null)
|
||||
{
|
||||
config.Fakeplayroomdatamoulds.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(FakePlayroomDataMouldItem 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, FakePlayroomDataMouldItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as FakePlayroomDataMould;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRFakePlayroomDataMould.cs.meta
Normal file
11
Scripts/DR_Generated/DRFakePlayroomDataMould.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f79387d946ed5e14096ffab5e2a2d7a6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -128,6 +128,7 @@ namespace Byway.Thrift.Data
|
||||
private global::Byway.Thrift.Data.ChargeConst _ChargeConst;
|
||||
private global::Byway.Thrift.Data.AmbientData _AmbientData;
|
||||
private global::Byway.Thrift.Data.FurShop _FurShop;
|
||||
private global::Byway.Thrift.Data.FakePlayroomDataMould _FakePlayroomDataMould;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.AdGiftData AdGiftData
|
||||
@ -1361,6 +1362,20 @@ namespace Byway.Thrift.Data
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public global::Byway.Thrift.Data.FakePlayroomDataMould FakePlayroomDataMould
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FakePlayroomDataMould;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.FakePlayroomDataMould = true;
|
||||
this._FakePlayroomDataMould = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
@ -1543,6 +1558,8 @@ namespace Byway.Thrift.Data
|
||||
public bool AmbientData;
|
||||
[DataMember]
|
||||
public bool FurShop;
|
||||
[DataMember]
|
||||
public bool FakePlayroomDataMould;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
@ -1987,6 +2004,11 @@ namespace Byway.Thrift.Data
|
||||
return __isset.FurShop;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeFakePlayroomDataMould()
|
||||
{
|
||||
return __isset.FakePlayroomDataMould;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public AllConfigs()
|
||||
@ -2436,6 +2458,11 @@ namespace Byway.Thrift.Data
|
||||
tmp0.FurShop = (global::Byway.Thrift.Data.FurShop)this.FurShop.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.FurShop = this.__isset.FurShop;
|
||||
if((FakePlayroomDataMould != null) && __isset.FakePlayroomDataMould)
|
||||
{
|
||||
tmp0.FakePlayroomDataMould = (global::Byway.Thrift.Data.FakePlayroomDataMould)this.FakePlayroomDataMould.DeepCopy();
|
||||
}
|
||||
tmp0.__isset.FakePlayroomDataMould = this.__isset.FakePlayroomDataMould;
|
||||
return tmp0;
|
||||
}
|
||||
|
||||
@ -3424,6 +3451,17 @@ namespace Byway.Thrift.Data
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 89:
|
||||
if (field.Type == TType.Struct)
|
||||
{
|
||||
FakePlayroomDataMould = new global::Byway.Thrift.Data.FakePlayroomDataMould();
|
||||
await FakePlayroomDataMould.ReadAsync(iprot, cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
break;
|
||||
@ -4240,6 +4278,15 @@ namespace Byway.Thrift.Data
|
||||
await FurShop.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((FakePlayroomDataMould != null) && __isset.FakePlayroomDataMould)
|
||||
{
|
||||
tmp2.Name = "FakePlayroomDataMould";
|
||||
tmp2.Type = TType.Struct;
|
||||
tmp2.ID = 89;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await FakePlayroomDataMould.WriteAsync(oprot, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
await oprot.WriteFieldStopAsync(cancellationToken);
|
||||
await oprot.WriteStructEndAsync(cancellationToken);
|
||||
}
|
||||
@ -4340,7 +4387,8 @@ namespace Byway.Thrift.Data
|
||||
&& ((__isset.FriendConst == other.__isset.FriendConst) && ((!__isset.FriendConst) || (global::System.Object.Equals(FriendConst, other.FriendConst))))
|
||||
&& ((__isset.ChargeConst == other.__isset.ChargeConst) && ((!__isset.ChargeConst) || (global::System.Object.Equals(ChargeConst, other.ChargeConst))))
|
||||
&& ((__isset.AmbientData == other.__isset.AmbientData) && ((!__isset.AmbientData) || (global::System.Object.Equals(AmbientData, other.AmbientData))))
|
||||
&& ((__isset.FurShop == other.__isset.FurShop) && ((!__isset.FurShop) || (global::System.Object.Equals(FurShop, other.FurShop))));
|
||||
&& ((__isset.FurShop == other.__isset.FurShop) && ((!__isset.FurShop) || (global::System.Object.Equals(FurShop, other.FurShop))))
|
||||
&& ((__isset.FakePlayroomDataMould == other.__isset.FakePlayroomDataMould) && ((!__isset.FakePlayroomDataMould) || (global::System.Object.Equals(FakePlayroomDataMould, other.FakePlayroomDataMould))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
@ -4698,6 +4746,10 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
hashcode = (hashcode * 397) + FurShop.GetHashCode();
|
||||
}
|
||||
if((FakePlayroomDataMould != null) && __isset.FakePlayroomDataMould)
|
||||
{
|
||||
hashcode = (hashcode * 397) + FakePlayroomDataMould.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
@ -5234,6 +5286,12 @@ namespace Byway.Thrift.Data
|
||||
tmp3.Append("FurShop: ");
|
||||
FurShop.ToString(tmp3);
|
||||
}
|
||||
if((FakePlayroomDataMould != null) && __isset.FakePlayroomDataMould)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("FakePlayroomDataMould: ");
|
||||
FakePlayroomDataMould.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
|
||||
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* <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 FakePlayroomDataMouldExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem> 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.FakePlayroomDataMouldItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem>(source.Count);
|
||||
foreach (var pair in source)
|
||||
tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null);
|
||||
return tmp15;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18bc85b485330564d9c9dd43c20c55fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,214 @@
|
||||
/**
|
||||
* <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 FakePlayroomDataMould : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem> _fakeplayroomdatamoulds;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem> Fakeplayroomdatamoulds
|
||||
{
|
||||
get
|
||||
{
|
||||
return _fakeplayroomdatamoulds;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@fakeplayroomdatamoulds = true;
|
||||
this._fakeplayroomdatamoulds = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @fakeplayroomdatamoulds;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeFakeplayroomdatamoulds()
|
||||
{
|
||||
return __isset.@fakeplayroomdatamoulds;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public FakePlayroomDataMould()
|
||||
{
|
||||
}
|
||||
|
||||
public FakePlayroomDataMould DeepCopy()
|
||||
{
|
||||
var tmp5 = new FakePlayroomDataMould();
|
||||
if((Fakeplayroomdatamoulds != null) && __isset.@fakeplayroomdatamoulds)
|
||||
{
|
||||
tmp5.Fakeplayroomdatamoulds = this.Fakeplayroomdatamoulds.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@fakeplayroomdatamoulds = this.__isset.@fakeplayroomdatamoulds;
|
||||
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);
|
||||
Fakeplayroomdatamoulds = new Dictionary<int, global::Byway.Thrift.Data.FakePlayroomDataMouldItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.FakePlayroomDataMouldItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.FakePlayroomDataMouldItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Fakeplayroomdatamoulds[_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("FakePlayroomDataMould");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Fakeplayroomdatamoulds != null) && __isset.@fakeplayroomdatamoulds)
|
||||
{
|
||||
tmp11.Name = "fakeplayroomdatamoulds";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Fakeplayroomdatamoulds.Count), cancellationToken);
|
||||
foreach (int _iter12 in Fakeplayroomdatamoulds.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Fakeplayroomdatamoulds[_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 FakePlayroomDataMould other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@fakeplayroomdatamoulds == other.__isset.@fakeplayroomdatamoulds) && ((!__isset.@fakeplayroomdatamoulds) || (TCollections.Equals(Fakeplayroomdatamoulds, other.Fakeplayroomdatamoulds))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Fakeplayroomdatamoulds != null) && __isset.@fakeplayroomdatamoulds)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Fakeplayroomdatamoulds);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("FakePlayroomDataMould(");
|
||||
int tmp14 = 0;
|
||||
if((Fakeplayroomdatamoulds != null) && __isset.@fakeplayroomdatamoulds)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Fakeplayroomdatamoulds: ");
|
||||
Fakeplayroomdatamoulds.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63b5f1da5c196b24e81b0bc0181c2d8e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,480 @@
|
||||
/**
|
||||
* <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 FakePlayroomDataMouldItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private string _Language;
|
||||
private string _PetName;
|
||||
private string _CatMould;
|
||||
private string _PlayroomMould;
|
||||
private int _ActivityType;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Language
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Language;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Language = true;
|
||||
this._Language = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string PetName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _PetName;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.PetName = true;
|
||||
this._PetName = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string CatMould
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CatMould;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.CatMould = true;
|
||||
this._CatMould = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string PlayroomMould
|
||||
{
|
||||
get
|
||||
{
|
||||
return _PlayroomMould;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.PlayroomMould = true;
|
||||
this._PlayroomMould = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int ActivityType
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ActivityType;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ActivityType = true;
|
||||
this._ActivityType = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Language;
|
||||
[DataMember]
|
||||
public bool PetName;
|
||||
[DataMember]
|
||||
public bool CatMould;
|
||||
[DataMember]
|
||||
public bool PlayroomMould;
|
||||
[DataMember]
|
||||
public bool ActivityType;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeLanguage()
|
||||
{
|
||||
return __isset.Language;
|
||||
}
|
||||
|
||||
public bool ShouldSerializePetName()
|
||||
{
|
||||
return __isset.PetName;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeCatMould()
|
||||
{
|
||||
return __isset.CatMould;
|
||||
}
|
||||
|
||||
public bool ShouldSerializePlayroomMould()
|
||||
{
|
||||
return __isset.PlayroomMould;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeActivityType()
|
||||
{
|
||||
return __isset.ActivityType;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public FakePlayroomDataMouldItem()
|
||||
{
|
||||
}
|
||||
|
||||
public FakePlayroomDataMouldItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new FakePlayroomDataMouldItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if((Language != null) && __isset.Language)
|
||||
{
|
||||
tmp0.Language = this.Language;
|
||||
}
|
||||
tmp0.__isset.Language = this.__isset.Language;
|
||||
if((PetName != null) && __isset.PetName)
|
||||
{
|
||||
tmp0.PetName = this.PetName;
|
||||
}
|
||||
tmp0.__isset.PetName = this.__isset.PetName;
|
||||
if((CatMould != null) && __isset.CatMould)
|
||||
{
|
||||
tmp0.CatMould = this.CatMould;
|
||||
}
|
||||
tmp0.__isset.CatMould = this.__isset.CatMould;
|
||||
if((PlayroomMould != null) && __isset.PlayroomMould)
|
||||
{
|
||||
tmp0.PlayroomMould = this.PlayroomMould;
|
||||
}
|
||||
tmp0.__isset.PlayroomMould = this.__isset.PlayroomMould;
|
||||
if(__isset.ActivityType)
|
||||
{
|
||||
tmp0.ActivityType = this.ActivityType;
|
||||
}
|
||||
tmp0.__isset.ActivityType = this.__isset.ActivityType;
|
||||
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)
|
||||
{
|
||||
Language = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
PetName = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
CatMould = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
PlayroomMould = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
ActivityType = await iprot.ReadI32Async(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("FakePlayroomDataMouldItem");
|
||||
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((Language != null) && __isset.Language)
|
||||
{
|
||||
tmp2.Name = "Language";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Language, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((PetName != null) && __isset.PetName)
|
||||
{
|
||||
tmp2.Name = "PetName";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(PetName, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((CatMould != null) && __isset.CatMould)
|
||||
{
|
||||
tmp2.Name = "CatMould";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 4;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(CatMould, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((PlayroomMould != null) && __isset.PlayroomMould)
|
||||
{
|
||||
tmp2.Name = "PlayroomMould";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 5;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(PlayroomMould, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.ActivityType)
|
||||
{
|
||||
tmp2.Name = "ActivityType";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 6;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(ActivityType, 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 FakePlayroomDataMouldItem 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.Language == other.__isset.Language) && ((!__isset.Language) || (global::System.Object.Equals(Language, other.Language))))
|
||||
&& ((__isset.PetName == other.__isset.PetName) && ((!__isset.PetName) || (global::System.Object.Equals(PetName, other.PetName))))
|
||||
&& ((__isset.CatMould == other.__isset.CatMould) && ((!__isset.CatMould) || (global::System.Object.Equals(CatMould, other.CatMould))))
|
||||
&& ((__isset.PlayroomMould == other.__isset.PlayroomMould) && ((!__isset.PlayroomMould) || (global::System.Object.Equals(PlayroomMould, other.PlayroomMould))))
|
||||
&& ((__isset.ActivityType == other.__isset.ActivityType) && ((!__isset.ActivityType) || (global::System.Object.Equals(ActivityType, other.ActivityType))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if((Language != null) && __isset.Language)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Language.GetHashCode();
|
||||
}
|
||||
if((PetName != null) && __isset.PetName)
|
||||
{
|
||||
hashcode = (hashcode * 397) + PetName.GetHashCode();
|
||||
}
|
||||
if((CatMould != null) && __isset.CatMould)
|
||||
{
|
||||
hashcode = (hashcode * 397) + CatMould.GetHashCode();
|
||||
}
|
||||
if((PlayroomMould != null) && __isset.PlayroomMould)
|
||||
{
|
||||
hashcode = (hashcode * 397) + PlayroomMould.GetHashCode();
|
||||
}
|
||||
if(__isset.ActivityType)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ActivityType.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("FakePlayroomDataMouldItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if((Language != null) && __isset.Language)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Language: ");
|
||||
Language.ToString(tmp3);
|
||||
}
|
||||
if((PetName != null) && __isset.PetName)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("PetName: ");
|
||||
PetName.ToString(tmp3);
|
||||
}
|
||||
if((CatMould != null) && __isset.CatMould)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("CatMould: ");
|
||||
CatMould.ToString(tmp3);
|
||||
}
|
||||
if((PlayroomMould != null) && __isset.PlayroomMould)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("PlayroomMould: ");
|
||||
PlayroomMould.ToString(tmp3);
|
||||
}
|
||||
if(__isset.ActivityType)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ActivityType: ");
|
||||
ActivityType.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 950f755a86dbb0649a361bb33e2a2841
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue
Block a user