更新NPC到多语言表
This commit is contained in:
parent
3b8dc6f79f
commit
31e0ebed5a
Binary file not shown.
@ -28,13 +28,13 @@ namespace CrazyMaple
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Name
|
||||
/// NameKey
|
||||
/// </summary>
|
||||
public string Name
|
||||
public string NameKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return _configData?.Name ?? "";
|
||||
return _configData?.NameKey ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ namespace Byway.Thrift.Data
|
||||
public partial class NPCFriendsDataItem : TBase
|
||||
{
|
||||
private int _Id;
|
||||
private string _Name;
|
||||
private string _NameKey;
|
||||
private string _NameCN;
|
||||
private string _NamePr;
|
||||
private int _Level;
|
||||
@ -66,16 +66,16 @@ namespace Byway.Thrift.Data
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public string Name
|
||||
public string NameKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Name;
|
||||
return _NameKey;
|
||||
}
|
||||
set
|
||||
{
|
||||
__isset.Name = true;
|
||||
this._Name = value;
|
||||
__isset.NameKey = true;
|
||||
this._NameKey = value;
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ namespace Byway.Thrift.Data
|
||||
[DataMember]
|
||||
public bool Id;
|
||||
[DataMember]
|
||||
public bool Name;
|
||||
public bool NameKey;
|
||||
[DataMember]
|
||||
public bool NameCN;
|
||||
[DataMember]
|
||||
@ -226,9 +226,9 @@ namespace Byway.Thrift.Data
|
||||
return __isset.Id;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeName()
|
||||
public bool ShouldSerializeNameKey()
|
||||
{
|
||||
return __isset.Name;
|
||||
return __isset.NameKey;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeNameCN()
|
||||
@ -285,11 +285,11 @@ namespace Byway.Thrift.Data
|
||||
tmp0.Id = this.Id;
|
||||
}
|
||||
tmp0.__isset.Id = this.__isset.Id;
|
||||
if((Name != null) && __isset.Name)
|
||||
if((NameKey != null) && __isset.NameKey)
|
||||
{
|
||||
tmp0.Name = this.Name;
|
||||
tmp0.NameKey = this.NameKey;
|
||||
}
|
||||
tmp0.__isset.Name = this.__isset.Name;
|
||||
tmp0.__isset.NameKey = this.__isset.NameKey;
|
||||
if((NameCN != null) && __isset.NameCN)
|
||||
{
|
||||
tmp0.NameCN = this.NameCN;
|
||||
@ -363,7 +363,7 @@ namespace Byway.Thrift.Data
|
||||
case 2:
|
||||
if (field.Type == TType.String)
|
||||
{
|
||||
Name = await iprot.ReadStringAsync(cancellationToken);
|
||||
NameKey = await iprot.ReadStringAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -483,13 +483,13 @@ namespace Byway.Thrift.Data
|
||||
await oprot.WriteI32Async(Id, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((Name != null) && __isset.Name)
|
||||
if((NameKey != null) && __isset.NameKey)
|
||||
{
|
||||
tmp2.Name = "Name";
|
||||
tmp2.Name = "NameKey";
|
||||
tmp2.Type = TType.String;
|
||||
tmp2.ID = 2;
|
||||
await oprot.WriteFieldBeginAsync(tmp2, cancellationToken);
|
||||
await oprot.WriteStringAsync(Name, cancellationToken);
|
||||
await oprot.WriteStringAsync(NameKey, cancellationToken);
|
||||
await oprot.WriteFieldEndAsync(cancellationToken);
|
||||
}
|
||||
if((NameCN != null) && __isset.NameCN)
|
||||
@ -578,7 +578,7 @@ namespace Byway.Thrift.Data
|
||||
if (!(that is NPCFriendsDataItem 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.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name))))
|
||||
&& ((__isset.NameKey == other.__isset.NameKey) && ((!__isset.NameKey) || (global::System.Object.Equals(NameKey, other.NameKey))))
|
||||
&& ((__isset.NameCN == other.__isset.NameCN) && ((!__isset.NameCN) || (global::System.Object.Equals(NameCN, other.NameCN))))
|
||||
&& ((__isset.NamePr == other.__isset.NamePr) && ((!__isset.NamePr) || (global::System.Object.Equals(NamePr, other.NamePr))))
|
||||
&& ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level))))
|
||||
@ -596,9 +596,9 @@ namespace Byway.Thrift.Data
|
||||
{
|
||||
hashcode = (hashcode * 397) + Id.GetHashCode();
|
||||
}
|
||||
if((Name != null) && __isset.Name)
|
||||
if((NameKey != null) && __isset.NameKey)
|
||||
{
|
||||
hashcode = (hashcode * 397) + Name.GetHashCode();
|
||||
hashcode = (hashcode * 397) + NameKey.GetHashCode();
|
||||
}
|
||||
if((NameCN != null) && __isset.NameCN)
|
||||
{
|
||||
@ -646,11 +646,11 @@ namespace Byway.Thrift.Data
|
||||
tmp3.Append("Id: ");
|
||||
Id.ToString(tmp3);
|
||||
}
|
||||
if((Name != null) && __isset.Name)
|
||||
if((NameKey != null) && __isset.NameKey)
|
||||
{
|
||||
if(0 < tmp4++) { tmp3.Append(", "); }
|
||||
tmp3.Append("Name: ");
|
||||
Name.ToString(tmp3);
|
||||
tmp3.Append("NameKey: ");
|
||||
NameKey.ToString(tmp3);
|
||||
}
|
||||
if((NameCN != null) && __isset.NameCN)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user