179 lines
8.9 KiB
C#
179 lines
8.9 KiB
C#
//------------------------------------------------------------------------------
|
||
// <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 RodSkinData : Bright.Config.BeanBase
|
||
{
|
||
public JSONNode json;
|
||
public RodSkinData(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["Avatar"].IsString) { throw new SerializationException(); } Avatar = _json["Avatar"]; }
|
||
{ 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"]; }
|
||
{ if(!_json["FishingScale"].IsNumber) { throw new SerializationException(); } FishingScale = _json["FishingScale"]; }
|
||
{ var __json0 = _json["DisplayPosition"]; if(!__json0.IsArray) { throw new SerializationException(); } DisplayPosition = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DisplayPosition.Add(__v0); } }
|
||
{ var __json0 = _json["DisplayRotation"]; if(!__json0.IsArray) { throw new SerializationException(); } DisplayRotation = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DisplayRotation.Add(__v0); } }
|
||
{ if(!_json["DisplayScale"].IsNumber) { throw new SerializationException(); } DisplayScale = _json["DisplayScale"]; }
|
||
{ if(!_json["ComboIntoAudio"].IsString) { throw new SerializationException(); } ComboIntoAudio = _json["ComboIntoAudio"]; }
|
||
{ if(!_json["ComboLoopAudio"].IsString) { throw new SerializationException(); } ComboLoopAudio = _json["ComboLoopAudio"]; }
|
||
{ if(!_json["ComboOutAudio"].IsString) { throw new SerializationException(); } ComboOutAudio = _json["ComboOutAudio"]; }
|
||
{ if(!_json["LineAudio"].IsString) { throw new SerializationException(); } LineAudio = _json["LineAudio"]; }
|
||
{ if(!_json["ReelingAudio"].IsString) { throw new SerializationException(); } ReelingAudio = _json["ReelingAudio"]; }
|
||
{ if(!_json["NotReelingAudio"].IsString) { throw new SerializationException(); } NotReelingAudio = _json["NotReelingAudio"]; }
|
||
{ if(!_json["ThrowingAudio"].IsString) { throw new SerializationException(); } ThrowingAudio = _json["ThrowingAudio"]; }
|
||
{ if(!_json["MaxComboTip"].IsString) { throw new SerializationException(); } MaxComboTip = _json["MaxComboTip"]; }
|
||
{ if(!_json["MaxComboFx"].IsString) { throw new SerializationException(); } MaxComboFx = _json["MaxComboFx"]; }
|
||
{ var __json0 = _json["PiercingSuccessFx"]; if(!__json0.IsArray) { throw new SerializationException(); } PiercingSuccessFx = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } PiercingSuccessFx.Add(__v0); } }
|
||
json = _json;
|
||
PostInit();
|
||
}
|
||
|
||
public RodSkinData(int ID, int Quality, string Fbx, string Avatar, string Name, string Desc, float FishingScale, System.Collections.Generic.List<float> DisplayPosition, System.Collections.Generic.List<float> DisplayRotation, float DisplayScale, string ComboIntoAudio, string ComboLoopAudio, string ComboOutAudio, string LineAudio, string ReelingAudio, string NotReelingAudio, string ThrowingAudio, string MaxComboTip, string MaxComboFx, System.Collections.Generic.List<string> PiercingSuccessFx )
|
||
{
|
||
this.ID = ID;
|
||
this.Quality = Quality;
|
||
this.Fbx = Fbx;
|
||
this.Avatar = Avatar;
|
||
this.Name = Name;
|
||
this.Desc = Desc;
|
||
this.FishingScale = FishingScale;
|
||
this.DisplayPosition = DisplayPosition;
|
||
this.DisplayRotation = DisplayRotation;
|
||
this.DisplayScale = DisplayScale;
|
||
this.ComboIntoAudio = ComboIntoAudio;
|
||
this.ComboLoopAudio = ComboLoopAudio;
|
||
this.ComboOutAudio = ComboOutAudio;
|
||
this.LineAudio = LineAudio;
|
||
this.ReelingAudio = ReelingAudio;
|
||
this.NotReelingAudio = NotReelingAudio;
|
||
this.ThrowingAudio = ThrowingAudio;
|
||
this.MaxComboTip = MaxComboTip;
|
||
this.MaxComboFx = MaxComboFx;
|
||
this.PiercingSuccessFx = PiercingSuccessFx;
|
||
PostInit();
|
||
}
|
||
|
||
public static RodSkinData DeserializeRodSkinData(JSONNode _json)
|
||
{
|
||
return new RodSkinData(_json);
|
||
}
|
||
|
||
public int ID { get; private set; }
|
||
public int Quality { get; private set; }
|
||
/// <summary>
|
||
/// 对应prefab名称
|
||
/// </summary>
|
||
public string Fbx { get; private set; }
|
||
public string Avatar { 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 float FishingScale { get; private set; }
|
||
public System.Collections.Generic.List<float> DisplayPosition { get; private set; }
|
||
/// <summary>
|
||
/// 一般为0,0,-20
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> DisplayRotation { get; private set; }
|
||
/// <summary>
|
||
/// 一般为10
|
||
/// </summary>
|
||
public float DisplayScale { get; private set; }
|
||
/// <summary>
|
||
/// 注意,这是一个UI音效
|
||
/// </summary>
|
||
public string ComboIntoAudio { get; private set; }
|
||
public string ComboLoopAudio { get; private set; }
|
||
public string ComboOutAudio { get; private set; }
|
||
/// <summary>
|
||
/// 按下按钮时,收线的声音
|
||
/// </summary>
|
||
public string LineAudio { get; private set; }
|
||
/// <summary>
|
||
/// 按下按钮的摇柄声音,分为:<br/>木柄声音<br/>金属声音
|
||
/// </summary>
|
||
public string ReelingAudio { get; private set; }
|
||
/// <summary>
|
||
/// 不按下按钮的摇柄声音,分为:<br/>木柄声音<br/>金属声音
|
||
/// </summary>
|
||
public string NotReelingAudio { get; private set; }
|
||
public string ThrowingAudio { get; private set; }
|
||
/// <summary>
|
||
/// 上边的特效
|
||
/// </summary>
|
||
public string MaxComboTip { get; private set; }
|
||
/// <summary>
|
||
/// 上边的特效
|
||
/// </summary>
|
||
public string MaxComboFx { get; private set; }
|
||
/// <summary>
|
||
/// 分别对应成功,漂亮,完美时候的特效名称
|
||
/// </summary>
|
||
public System.Collections.Generic.List<string> PiercingSuccessFx { get; private set; }
|
||
|
||
public const int __ID__ = 191648142;
|
||
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 + ","
|
||
+ "Avatar:" + Avatar + ","
|
||
+ "Name:" + Name + ","
|
||
+ "Desc:" + Desc + ","
|
||
+ "FishingScale:" + FishingScale + ","
|
||
+ "DisplayPosition:" + Bright.Common.StringUtil.CollectionToString(DisplayPosition) + ","
|
||
+ "DisplayRotation:" + Bright.Common.StringUtil.CollectionToString(DisplayRotation) + ","
|
||
+ "DisplayScale:" + DisplayScale + ","
|
||
+ "ComboIntoAudio:" + ComboIntoAudio + ","
|
||
+ "ComboLoopAudio:" + ComboLoopAudio + ","
|
||
+ "ComboOutAudio:" + ComboOutAudio + ","
|
||
+ "LineAudio:" + LineAudio + ","
|
||
+ "ReelingAudio:" + ReelingAudio + ","
|
||
+ "NotReelingAudio:" + NotReelingAudio + ","
|
||
+ "ThrowingAudio:" + ThrowingAudio + ","
|
||
+ "MaxComboTip:" + MaxComboTip + ","
|
||
+ "MaxComboFx:" + MaxComboFx + ","
|
||
+ "PiercingSuccessFx:" + Bright.Common.StringUtil.CollectionToString(PiercingSuccessFx) + ","
|
||
+ "}";
|
||
}
|
||
|
||
partial void PostInit();
|
||
partial void PostResolve();
|
||
}
|
||
}
|