备份CatanBuilding瘦身独立工程
This commit is contained in:
99
Assets/Scripts/Tables/RodAscendPerk.cs
Normal file
99
Assets/Scripts/Tables/RodAscendPerk.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 RodAscendPerk : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public RodAscendPerk(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["PerkType"].IsNumber) { throw new SerializationException(); } PerkType = (RodPerkType)_json["PerkType"].AsInt; }
|
||||
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
||||
{ if(!_json["DuelPerk"].IsBoolean) { throw new SerializationException(); } DuelPerk = _json["DuelPerk"]; }
|
||||
{ if(!_json["DuelPowerParam"].IsNumber) { throw new SerializationException(); } DuelPowerParam = _json["DuelPowerParam"]; }
|
||||
{ if(!_json["Title"]["key"].IsString) { throw new SerializationException(); } Title_l10n_key = _json["Title"]["key"]; if(!_json["Title"]["text"].IsString) { throw new SerializationException(); } Title = _json["Title"]["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 RodAscendPerk(int ID, RodPerkType PerkType, string Icon, bool DuelPerk, float DuelPowerParam, string Title, string Desc )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.PerkType = PerkType;
|
||||
this.Icon = Icon;
|
||||
this.DuelPerk = DuelPerk;
|
||||
this.DuelPowerParam = DuelPowerParam;
|
||||
this.Title = Title;
|
||||
this.Desc = Desc;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static RodAscendPerk DeserializeRodAscendPerk(JSONNode _json)
|
||||
{
|
||||
return new RodAscendPerk(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// 对应enum表中数据
|
||||
/// </summary>
|
||||
public RodPerkType PerkType { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
public bool DuelPerk { get; private set; }
|
||||
public float DuelPowerParam { get; private set; }
|
||||
/// <summary>
|
||||
/// 显示用标题
|
||||
/// </summary>
|
||||
public string Title { get; private set; }
|
||||
public string Title_l10n_key { get; }
|
||||
/// <summary>
|
||||
/// 显示用描述
|
||||
/// </summary>
|
||||
public string Desc { get; private set; }
|
||||
public string Desc_l10n_key { get; }
|
||||
|
||||
public const int __ID__ = 1392383967;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void Resolve(Dictionary<string, object> _tables)
|
||||
{
|
||||
PostResolve();
|
||||
}
|
||||
|
||||
public void TranslateText(System.Func<string, string, string> translator)
|
||||
{
|
||||
Title = translator(Title_l10n_key, Title);
|
||||
Desc = translator(Desc_l10n_key, Desc);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "ID:" + ID + ","
|
||||
+ "PerkType:" + PerkType + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "DuelPerk:" + DuelPerk + ","
|
||||
+ "DuelPowerParam:" + DuelPowerParam + ","
|
||||
+ "Title:" + Title + ","
|
||||
+ "Desc:" + Desc + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user