备份CatanBuilding瘦身独立工程
This commit is contained in:
95
Assets/Scripts/Tables/RodAccessoriesData.cs
Normal file
95
Assets/Scripts/Tables/RodAccessoriesData.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
using Bright.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class RodAccessoriesData : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public RodAccessoriesData(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
|
||||
{ if(!_json["Fbx"].IsString) { throw new SerializationException(); } Fbx = _json["Fbx"]; }
|
||||
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
||||
{ if(!_json["Name"]["key"].IsString) { throw new SerializationException(); } Name_l10n_key = _json["Name"]["key"]; if(!_json["Name"]["text"].IsString) { throw new SerializationException(); } Name = _json["Name"]["text"]; }
|
||||
{ if(!_json["Desc"]["key"].IsString) { throw new SerializationException(); } Desc_l10n_key = _json["Desc"]["key"]; if(!_json["Desc"]["text"].IsString) { throw new SerializationException(); } Desc = _json["Desc"]["text"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public RodAccessoriesData(int ID, int Quality, string Fbx, string Icon, string Name, string Desc )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Quality = Quality;
|
||||
this.Fbx = Fbx;
|
||||
this.Icon = Icon;
|
||||
this.Name = Name;
|
||||
this.Desc = Desc;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static RodAccessoriesData DeserializeRodAccessoriesData(JSONNode _json)
|
||||
{
|
||||
return new RodAccessoriesData(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
public int Quality { get; private set; }
|
||||
/// <summary>
|
||||
/// 对应prefab名称
|
||||
/// </summary>
|
||||
public string Fbx { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
/// <summary>
|
||||
/// 显示用描述
|
||||
/// </summary>
|
||||
public string Name { get; private set; }
|
||||
public string Name_l10n_key { get; }
|
||||
/// <summary>
|
||||
/// 显示用描述
|
||||
/// </summary>
|
||||
public string Desc { get; private set; }
|
||||
public string Desc_l10n_key { get; }
|
||||
|
||||
public const int __ID__ = 226624083;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void Resolve(Dictionary<string, object> _tables)
|
||||
{
|
||||
PostResolve();
|
||||
}
|
||||
|
||||
public void TranslateText(System.Func<string, string, string> translator)
|
||||
{
|
||||
Name = translator(Name_l10n_key, Name);
|
||||
Desc = translator(Desc_l10n_key, Desc);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "ID:" + ID + ","
|
||||
+ "Quality:" + Quality + ","
|
||||
+ "Fbx:" + Fbx + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "Name:" + Name + ","
|
||||
+ "Desc:" + Desc + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user