//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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(__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(__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(__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 DisplayPosition, System.Collections.Generic.List 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 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; } /// /// 对应prefab名称 /// public string Fbx { get; private set; } public string Avatar { get; private set; } /// /// 显示用描述 /// public string Name { get; private set; } public string Name_l10n_key { get; } /// /// 显示用描述 /// public string Desc { get; private set; } public string Desc_l10n_key { get; } public float FishingScale { get; private set; } public System.Collections.Generic.List DisplayPosition { get; private set; } /// /// 一般为0,0,-20 /// public System.Collections.Generic.List DisplayRotation { get; private set; } /// /// 一般为10 /// public float DisplayScale { get; private set; } /// /// 注意,这是一个UI音效 /// public string ComboIntoAudio { get; private set; } public string ComboLoopAudio { get; private set; } public string ComboOutAudio { get; private set; } /// /// 按下按钮时,收线的声音 /// public string LineAudio { get; private set; } /// /// 按下按钮的摇柄声音,分为:
木柄声音
金属声音 ///
public string ReelingAudio { get; private set; } /// /// 不按下按钮的摇柄声音,分为:
木柄声音
金属声音 ///
public string NotReelingAudio { get; private set; } public string ThrowingAudio { get; private set; } /// /// 上边的特效 /// public string MaxComboTip { get; private set; } /// /// 上边的特效 /// public string MaxComboFx { get; private set; } /// /// 分别对应成功,漂亮,完美时候的特效名称 /// public System.Collections.Generic.List PiercingSuccessFx { get; private set; } public const int __ID__ = 191648142; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func 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(); } }