//------------------------------------------------------------------------------ // // 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 EventBossFightSpinPoints : Bright.Config.BeanBase { public JSONNode json; public EventBossFightSpinPoints(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["EffectValue"].IsNumber) { throw new SerializationException(); } EffectValue = _json["EffectValue"]; } { if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; } { if(!_json["SpinType"].IsString) { throw new SerializationException(); } SpinType = _json["SpinType"]; } { if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["OverflowConvertRate"].IsNumber) { throw new SerializationException(); } OverflowConvertRate = _json["OverflowConvertRate"]; } { if(!_json["LeftWeight"].IsNumber) { throw new SerializationException(); } LeftWeight = _json["LeftWeight"]; } { if(!_json["Fx"].IsString) { throw new SerializationException(); } Fx = _json["Fx"]; } { if(!_json["Audio"].IsString) { throw new SerializationException(); } Audio = _json["Audio"]; } json = _json; PostInit(); } public EventBossFightSpinPoints(int ID, int EffectValue, int Weight, string SpinType, int Quality, string Icon, int OverflowConvertRate, int LeftWeight, string Fx, string Audio ) { this.ID = ID; this.EffectValue = EffectValue; this.Weight = Weight; this.SpinType = SpinType; this.Quality = Quality; this.Icon = Icon; this.OverflowConvertRate = OverflowConvertRate; this.LeftWeight = LeftWeight; this.Fx = Fx; this.Audio = Audio; PostInit(); } public static EventBossFightSpinPoints DeserializeEventBossFightSpinPoints(JSONNode _json) { return new EventBossFightSpinPoints(_json); } public int ID { get; private set; } public int EffectValue { get; private set; } public int Weight { get; private set; } public string SpinType { get; private set; } public int Quality { get; private set; } public string Icon { get; private set; } public int OverflowConvertRate { get; private set; } /// /// 最后停留在左边 /// public int LeftWeight { get; private set; } public string Fx { get; private set; } public string Audio { get; private set; } public const int __ID__ = 510786542; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "EffectValue:" + EffectValue + "," + "Weight:" + Weight + "," + "SpinType:" + SpinType + "," + "Quality:" + Quality + "," + "Icon:" + Icon + "," + "OverflowConvertRate:" + OverflowConvertRate + "," + "LeftWeight:" + LeftWeight + "," + "Fx:" + Fx + "," + "Audio:" + Audio + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }