增加Mapbuilding标
This commit is contained in:
parent
aadb99933c
commit
25ceaa59c6
Binary file not shown.
217
Scripts/DR_Generated/DRMapBuilding.cs
Normal file
217
Scripts/DR_Generated/DRMapBuilding.cs
Normal file
@ -0,0 +1,217 @@
|
||||
// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改
|
||||
// 配置类: MapBuilding
|
||||
// 数据类: MapBuildingItem
|
||||
|
||||
using UnityEngine;
|
||||
using Byway.Config;
|
||||
using Byway.Thrift.Data;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace CrazyMaple
|
||||
{
|
||||
/// <summary>
|
||||
/// MapBuilding 数据行
|
||||
/// </summary>
|
||||
public class DRMapBuilding : DataRowBase
|
||||
{
|
||||
private MapBuildingItem _configData;
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public override int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Id ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Area
|
||||
/// </summary>
|
||||
public int Area
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Area ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Building
|
||||
/// </summary>
|
||||
public int Building
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Building ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BuildingUnlockLv
|
||||
/// </summary>
|
||||
public int BuildingUnlockLv
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.BuildingUnlockLv ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BuildNum
|
||||
/// </summary>
|
||||
public int BuildNum
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.BuildNum ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BuildLv
|
||||
/// </summary>
|
||||
public int BuildLv
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.BuildLv ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// EXPReward
|
||||
/// </summary>
|
||||
public int EXPReward
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.EXPReward ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ProducerReward
|
||||
/// </summary>
|
||||
public string ProducerReward
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.ProducerReward ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parts
|
||||
/// </summary>
|
||||
public int Parts
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Parts ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PetCoins
|
||||
/// </summary>
|
||||
public string PetCoins
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.PetCoins ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FogCover
|
||||
/// </summary>
|
||||
public string FogCover
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.FogCover ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BuildingIcon
|
||||
/// </summary>
|
||||
public string BuildingIcon
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.BuildingIcon ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从配置加载数据(优先使用传入的配置实例)
|
||||
/// </summary>
|
||||
public void LoadFromConfig(int id, MapBuilding config = null)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = ConfigManager.Instance.GetConfig<MapBuilding>();
|
||||
}
|
||||
|
||||
if (config?.Mapbuildings != null)
|
||||
{
|
||||
config.Mapbuildings.TryGetValue(id, out _configData);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 直接设置配置数据(性能优化:跳过字典查询)
|
||||
/// </summary>
|
||||
public void SetConfigData(MapBuildingItem 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, MapBuildingItem>;
|
||||
if (dict != null && dict.TryGetValue(id, out var item))
|
||||
{
|
||||
_configData = item;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 备选方案:从配置实例获取
|
||||
if (userDataDict.TryGetValue("ConfigInstance", out object configObj))
|
||||
{
|
||||
var config = configObj as MapBuilding;
|
||||
if (config != null)
|
||||
{
|
||||
LoadFromConfig(id, config);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 兜底方案:直接查询(最慢)
|
||||
LoadFromConfig(id);
|
||||
return _configData != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Scripts/DR_Generated/DRMapBuilding.cs.meta
Normal file
11
Scripts/DR_Generated/DRMapBuilding.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0b66eec76d27924baae55b98100ec5e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@ -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 MapBuildingExtensions
|
||||
{
|
||||
public static bool Equals(this Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem> instance, object that)
|
||||
{
|
||||
if (!(that is Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem> 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.MapBuildingItem> instance)
|
||||
{
|
||||
return TCollections.GetHashCode(instance);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem> DeepCopy(this Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem> source)
|
||||
{
|
||||
if (source == null)
|
||||
return null;
|
||||
|
||||
var tmp15 = new Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem>(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: e8c0784159694f64bb62fdf4a9c01e72
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/MapBuilding.cs
Normal file
214
Scripts/thrift/gen-netstd/Byway/Thrift/Data/MapBuilding.cs
Normal file
@ -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 MapBuilding : TBase
|
||||
{
|
||||
private Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem> _mapbuildings;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem> Mapbuildings
|
||||
{
|
||||
get
|
||||
{
|
||||
return _mapbuildings;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.@mapbuildings = true;
|
||||
this._mapbuildings = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool @mapbuildings;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeMapbuildings()
|
||||
{
|
||||
return __isset.@mapbuildings;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public MapBuilding()
|
||||
{
|
||||
}
|
||||
|
||||
public MapBuilding DeepCopy()
|
||||
{
|
||||
var tmp5 = new MapBuilding();
|
||||
if((Mapbuildings != null) && __isset.@mapbuildings)
|
||||
{
|
||||
tmp5.Mapbuildings = this.Mapbuildings.DeepCopy();
|
||||
}
|
||||
tmp5.__isset.@mapbuildings = this.__isset.@mapbuildings;
|
||||
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);
|
||||
Mapbuildings = new Dictionary<int, global::Byway.Thrift.Data.MapBuildingItem>(_map6.Count);
|
||||
for(int _i7 = 0; _i7 < _map6.Count; ++_i7)
|
||||
{
|
||||
int _key8;
|
||||
global::Byway.Thrift.Data.MapBuildingItem _val9;
|
||||
_key8 = await iprot.ReadI32Async(cancellationToken);
|
||||
_val9 = new global::Byway.Thrift.Data.MapBuildingItem();
|
||||
await _val9.ReadAsync(iprot, cancellationToken);
|
||||
Mapbuildings[_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("MapBuilding");
|
||||
await oprot.WriteStructBeginAsync(tmp10, cancellationToken);
|
||||
var tmp11 = new TField();
|
||||
if((Mapbuildings != null) && __isset.@mapbuildings)
|
||||
{
|
||||
tmp11.Name = "mapbuildings";
|
||||
tmp11.Type = TType.Map;
|
||||
tmp11.ID = 1;
|
||||
await oprot.WriteFieldBeginAsync(tmp11, cancellationToken);
|
||||
await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Mapbuildings.Count), cancellationToken);
|
||||
foreach (int _iter12 in Mapbuildings.Keys)
|
||||
{
|
||||
await oprot.WriteI32Async(_iter12, cancellationToken);
|
||||
await Mapbuildings[_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 MapBuilding other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
return ((__isset.@mapbuildings == other.__isset.@mapbuildings) && ((!__isset.@mapbuildings) || (TCollections.Equals(Mapbuildings, other.Mapbuildings))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if((Mapbuildings != null) && __isset.@mapbuildings)
|
||||
{
|
||||
hashcode = (hashcode * 397) + TCollections.GetHashCode(Mapbuildings);
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp13 = new StringBuilder("MapBuilding(");
|
||||
int tmp14 = 0;
|
||||
if((Mapbuildings != null) && __isset.@mapbuildings)
|
||||
{
|
||||
if(0 < tmp14++) { tmp13.Append(", "); }
|
||||
tmp13.Append("Mapbuildings: ");
|
||||
Mapbuildings.ToString(tmp13);
|
||||
}
|
||||
tmp13.Append(')');
|
||||
return tmp13.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7301c6a7d8b332242b91a9f4fb03e33a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
822
Scripts/thrift/gen-netstd/Byway/Thrift/Data/MapBuildingItem.cs
Normal file
822
Scripts/thrift/gen-netstd/Byway/Thrift/Data/MapBuildingItem.cs
Normal file
@ -0,0 +1,822 @@
|
||||
/**
|
||||
* <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 MapBuildingItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private int _Area;
|
||||
private int _Building;
|
||||
private int _BuildingUnlockLv;
|
||||
private int _BuildNum;
|
||||
private int _BuildLv;
|
||||
private int _EXPReward;
|
||||
private string _ProducerReward;
|
||||
private int _Parts;
|
||||
private string _PetCoins;
|
||||
private string _FogCover;
|
||||
private string _BuildingIcon;
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Id = true;
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Area
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Area;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Area = true;
|
||||
this._Area = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Building
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Building;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Building = true;
|
||||
this._Building = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int BuildingUnlockLv
|
||||
{
|
||||
get
|
||||
{
|
||||
return _BuildingUnlockLv;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.BuildingUnlockLv = true;
|
||||
this._BuildingUnlockLv = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int BuildNum
|
||||
{
|
||||
get
|
||||
{
|
||||
return _BuildNum;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.BuildNum = true;
|
||||
this._BuildNum = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int BuildLv
|
||||
{
|
||||
get
|
||||
{
|
||||
return _BuildLv;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.BuildLv = true;
|
||||
this._BuildLv = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int EXPReward
|
||||
{
|
||||
get
|
||||
{
|
||||
return _EXPReward;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.EXPReward = true;
|
||||
this._EXPReward = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string ProducerReward
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ProducerReward;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.ProducerReward = true;
|
||||
this._ProducerReward = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public int Parts
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Parts;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Parts = true;
|
||||
this._Parts = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string PetCoins
|
||||
{
|
||||
get
|
||||
{
|
||||
return _PetCoins;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.PetCoins = true;
|
||||
this._PetCoins = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string FogCover
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FogCover;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.FogCover = true;
|
||||
this._FogCover = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string BuildingIcon
|
||||
{
|
||||
get
|
||||
{
|
||||
return _BuildingIcon;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.BuildingIcon = true;
|
||||
this._BuildingIcon = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DataMember(Order = 1)]
|
||||
public Isset __isset;
|
||||
[DataContract]
|
||||
public struct Isset
|
||||
{
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Area;
|
||||
[DataMember]
|
||||
public bool Building;
|
||||
[DataMember]
|
||||
public bool BuildingUnlockLv;
|
||||
[DataMember]
|
||||
public bool BuildNum;
|
||||
[DataMember]
|
||||
public bool BuildLv;
|
||||
[DataMember]
|
||||
public bool EXPReward;
|
||||
[DataMember]
|
||||
public bool ProducerReward;
|
||||
[DataMember]
|
||||
public bool Parts;
|
||||
[DataMember]
|
||||
public bool PetCoins;
|
||||
[DataMember]
|
||||
public bool FogCover;
|
||||
[DataMember]
|
||||
public bool BuildingIcon;
|
||||
}
|
||||
|
||||
#region XmlSerializer support
|
||||
|
||||
public bool ShouldSerializeId()
|
||||
{
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeArea()
|
||||
{
|
||||
return __isset.Area;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeBuilding()
|
||||
{
|
||||
return __isset.Building;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeBuildingUnlockLv()
|
||||
{
|
||||
return __isset.BuildingUnlockLv;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeBuildNum()
|
||||
{
|
||||
return __isset.BuildNum;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeBuildLv()
|
||||
{
|
||||
return __isset.BuildLv;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeEXPReward()
|
||||
{
|
||||
return __isset.EXPReward;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeProducerReward()
|
||||
{
|
||||
return __isset.ProducerReward;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeParts()
|
||||
{
|
||||
return __isset.Parts;
|
||||
}
|
||||
|
||||
public bool ShouldSerializePetCoins()
|
||||
{
|
||||
return __isset.PetCoins;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeFogCover()
|
||||
{
|
||||
return __isset.FogCover;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeBuildingIcon()
|
||||
{
|
||||
return __isset.BuildingIcon;
|
||||
}
|
||||
|
||||
#endregion XmlSerializer support
|
||||
|
||||
public MapBuildingItem()
|
||||
{
|
||||
}
|
||||
|
||||
public MapBuildingItem DeepCopy()
|
||||
{
|
||||
var tmp0 = new MapBuildingItem();
|
||||
if(__isset.Id)
|
||||
{
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if(__isset.Area)
|
||||
{
|
||||
tmp0.Area = this.Area;
|
||||
}
|
||||
tmp0.__isset.Area = this.__isset.Area;
|
||||
if(__isset.Building)
|
||||
{
|
||||
tmp0.Building = this.Building;
|
||||
}
|
||||
tmp0.__isset.Building = this.__isset.Building;
|
||||
if(__isset.BuildingUnlockLv)
|
||||
{
|
||||
tmp0.BuildingUnlockLv = this.BuildingUnlockLv;
|
||||
}
|
||||
tmp0.__isset.BuildingUnlockLv = this.__isset.BuildingUnlockLv;
|
||||
if(__isset.BuildNum)
|
||||
{
|
||||
tmp0.BuildNum = this.BuildNum;
|
||||
}
|
||||
tmp0.__isset.BuildNum = this.__isset.BuildNum;
|
||||
if(__isset.BuildLv)
|
||||
{
|
||||
tmp0.BuildLv = this.BuildLv;
|
||||
}
|
||||
tmp0.__isset.BuildLv = this.__isset.BuildLv;
|
||||
if(__isset.EXPReward)
|
||||
{
|
||||
tmp0.EXPReward = this.EXPReward;
|
||||
}
|
||||
tmp0.__isset.EXPReward = this.__isset.EXPReward;
|
||||
if((ProducerReward != null) && __isset.ProducerReward)
|
||||
{
|
||||
tmp0.ProducerReward = this.ProducerReward;
|
||||
}
|
||||
tmp0.__isset.ProducerReward = this.__isset.ProducerReward;
|
||||
if(__isset.Parts)
|
||||
{
|
||||
tmp0.Parts = this.Parts;
|
||||
}
|
||||
tmp0.__isset.Parts = this.__isset.Parts;
|
||||
if((PetCoins != null) && __isset.PetCoins)
|
||||
{
|
||||
tmp0.PetCoins = this.PetCoins;
|
||||
}
|
||||
tmp0.__isset.PetCoins = this.__isset.PetCoins;
|
||||
if((FogCover != null) && __isset.FogCover)
|
||||
{
|
||||
tmp0.FogCover = this.FogCover;
|
||||
}
|
||||
tmp0.__isset.FogCover = this.__isset.FogCover;
|
||||
if((BuildingIcon != null) && __isset.BuildingIcon)
|
||||
{
|
||||
tmp0.BuildingIcon = this.BuildingIcon;
|
||||
}
|
||||
tmp0.__isset.BuildingIcon = this.__isset.BuildingIcon;
|
||||
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)
|
||||
{
|
||||
Area = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Building = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
BuildingUnlockLv = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
BuildNum = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
BuildLv = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
EXPReward = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
ProducerReward = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 9:
|
||||
if (field.Type == TType.I32)
|
||||
{
|
||||
Parts = await iprot.ReadI32Async(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
PetCoins = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
FogCover = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
BuildingIcon = 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("MapBuildingItem");
|
||||
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.Area)
|
||||
{
|
||||
tmp2.Name = "Area";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Area, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.Building)
|
||||
{
|
||||
tmp2.Name = "Building";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 3;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Building, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.BuildingUnlockLv)
|
||||
{
|
||||
tmp2.Name = "BuildingUnlockLv";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 4;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(BuildingUnlockLv, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.BuildNum)
|
||||
{
|
||||
tmp2.Name = "BuildNum";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 5;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(BuildNum, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.BuildLv)
|
||||
{
|
||||
tmp2.Name = "BuildLv";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 6;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(BuildLv, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.EXPReward)
|
||||
{
|
||||
tmp2.Name = "EXPReward";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 7;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(EXPReward, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((ProducerReward != null) && __isset.ProducerReward)
|
||||
{
|
||||
tmp2.Name = "ProducerReward";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 8;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(ProducerReward, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if(__isset.Parts)
|
||||
{
|
||||
tmp2.Name = "Parts";
|
||||
tmp2.Type = TType.I32;
|
||||
tmp2.ID = 9;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteI32Async(Parts, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((PetCoins != null) && __isset.PetCoins)
|
||||
{
|
||||
tmp2.Name = "PetCoins";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 10;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(PetCoins, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((FogCover != null) && __isset.FogCover)
|
||||
{
|
||||
tmp2.Name = "FogCover";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 11;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(FogCover, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((BuildingIcon != null) && __isset.BuildingIcon)
|
||||
{
|
||||
tmp2.Name = "BuildingIcon";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 12;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(BuildingIcon, 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 MapBuildingItem 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.Area == other.__isset.Area) && ((!__isset.Area) || (global::System.Object.Equals(Area, other.Area))))
|
||||
&& ((__isset.Building == other.__isset.Building) && ((!__isset.Building) || (global::System.Object.Equals(Building, other.Building))))
|
||||
&& ((__isset.BuildingUnlockLv == other.__isset.BuildingUnlockLv) && ((!__isset.BuildingUnlockLv) || (global::System.Object.Equals(BuildingUnlockLv, other.BuildingUnlockLv))))
|
||||
&& ((__isset.BuildNum == other.__isset.BuildNum) && ((!__isset.BuildNum) || (global::System.Object.Equals(BuildNum, other.BuildNum))))
|
||||
&& ((__isset.BuildLv == other.__isset.BuildLv) && ((!__isset.BuildLv) || (global::System.Object.Equals(BuildLv, other.BuildLv))))
|
||||
&& ((__isset.EXPReward == other.__isset.EXPReward) && ((!__isset.EXPReward) || (global::System.Object.Equals(EXPReward, other.EXPReward))))
|
||||
&& ((__isset.ProducerReward == other.__isset.ProducerReward) && ((!__isset.ProducerReward) || (global::System.Object.Equals(ProducerReward, other.ProducerReward))))
|
||||
&& ((__isset.Parts == other.__isset.Parts) && ((!__isset.Parts) || (global::System.Object.Equals(Parts, other.Parts))))
|
||||
&& ((__isset.PetCoins == other.__isset.PetCoins) && ((!__isset.PetCoins) || (global::System.Object.Equals(PetCoins, other.PetCoins))))
|
||||
&& ((__isset.FogCover == other.__isset.FogCover) && ((!__isset.FogCover) || (global::System.Object.Equals(FogCover, other.FogCover))))
|
||||
&& ((__isset.BuildingIcon == other.__isset.BuildingIcon) && ((!__isset.BuildingIcon) || (global::System.Object.Equals(BuildingIcon, other.BuildingIcon))));
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hashcode = 157;
|
||||
unchecked {
|
||||
if(__isset.Id)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if(__isset.Area)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Area.GetHashCode();
|
||||
}
|
||||
if(__isset.Building)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Building.GetHashCode();
|
||||
}
|
||||
if(__isset.BuildingUnlockLv)
|
||||
{
|
||||
hashcode = (hashcode * 397) + BuildingUnlockLv.GetHashCode();
|
||||
}
|
||||
if(__isset.BuildNum)
|
||||
{
|
||||
hashcode = (hashcode * 397) + BuildNum.GetHashCode();
|
||||
}
|
||||
if(__isset.BuildLv)
|
||||
{
|
||||
hashcode = (hashcode * 397) + BuildLv.GetHashCode();
|
||||
}
|
||||
if(__isset.EXPReward)
|
||||
{
|
||||
hashcode = (hashcode * 397) + EXPReward.GetHashCode();
|
||||
}
|
||||
if((ProducerReward != null) && __isset.ProducerReward)
|
||||
{
|
||||
hashcode = (hashcode * 397) + ProducerReward.GetHashCode();
|
||||
}
|
||||
if(__isset.Parts)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Parts.GetHashCode();
|
||||
}
|
||||
if((PetCoins != null) && __isset.PetCoins)
|
||||
{
|
||||
hashcode = (hashcode * 397) + PetCoins.GetHashCode();
|
||||
}
|
||||
if((FogCover != null) && __isset.FogCover)
|
||||
{
|
||||
hashcode = (hashcode * 397) + FogCover.GetHashCode();
|
||||
}
|
||||
if((BuildingIcon != null) && __isset.BuildingIcon)
|
||||
{
|
||||
hashcode = (hashcode * 397) + BuildingIcon.GetHashCode();
|
||||
}
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var tmp3 = new StringBuilder("MapBuildingItem(");
|
||||
int tmp4 = 0;
|
||||
if(__isset.Id)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if(__isset.Area)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Area: ");
|
||||
Area.ToString(tmp3);
|
||||
}
|
||||
if(__isset.Building)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Building: ");
|
||||
Building.ToString(tmp3);
|
||||
}
|
||||
if(__isset.BuildingUnlockLv)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("BuildingUnlockLv: ");
|
||||
BuildingUnlockLv.ToString(tmp3);
|
||||
}
|
||||
if(__isset.BuildNum)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("BuildNum: ");
|
||||
BuildNum.ToString(tmp3);
|
||||
}
|
||||
if(__isset.BuildLv)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("BuildLv: ");
|
||||
BuildLv.ToString(tmp3);
|
||||
}
|
||||
if(__isset.EXPReward)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("EXPReward: ");
|
||||
EXPReward.ToString(tmp3);
|
||||
}
|
||||
if((ProducerReward != null) && __isset.ProducerReward)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("ProducerReward: ");
|
||||
ProducerReward.ToString(tmp3);
|
||||
}
|
||||
if(__isset.Parts)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Parts: ");
|
||||
Parts.ToString(tmp3);
|
||||
}
|
||||
if((PetCoins != null) && __isset.PetCoins)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("PetCoins: ");
|
||||
PetCoins.ToString(tmp3);
|
||||
}
|
||||
if((FogCover != null) && __isset.FogCover)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("FogCover: ");
|
||||
FogCover.ToString(tmp3);
|
||||
}
|
||||
if((BuildingIcon != null) && __isset.BuildingIcon)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("BuildingIcon: ");
|
||||
BuildingIcon.ToString(tmp3);
|
||||
}
|
||||
tmp3.Append(')');
|
||||
return tmp3.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6afda99799f488549a2c3fbc7d94cc1a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue
Block a user