//------------------------------------------------------------------------------ // // 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 EventPartnerStatueDice : Bright.Config.BeanBase { public JSONNode json; public EventPartnerStatueDice(JSONNode _json) { { if(!_json["Face"].IsNumber) { throw new SerializationException(); } Face = _json["Face"]; } { if(!_json["Type"].IsString) { throw new SerializationException(); } Type = _json["Type"]; } { if(!_json["SpinPointParam"].IsObject) { throw new SerializationException(); } SpinPointParam = EventPartnerSpinType.DeserializeEventPartnerSpinType(_json["SpinPointParam"]); } { if(!_json["ComboBonus"].IsNumber) { throw new SerializationException(); } ComboBonus = _json["ComboBonus"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { if(!_json["AnimationTime"].IsNumber) { throw new SerializationException(); } AnimationTime = _json["AnimationTime"]; } { if(!_json["FxDelay"].IsNumber) { throw new SerializationException(); } FxDelay = _json["FxDelay"]; } json = _json; PostInit(); } public EventPartnerStatueDice(int Face, string Type, EventPartnerSpinType SpinPointParam, int ComboBonus, string Icon, float AnimationTime, float FxDelay ) { this.Face = Face; this.Type = Type; this.SpinPointParam = SpinPointParam; this.ComboBonus = ComboBonus; this.Icon = Icon; this.AnimationTime = AnimationTime; this.FxDelay = FxDelay; PostInit(); } public static EventPartnerStatueDice DeserializeEventPartnerStatueDice(JSONNode _json) { return new EventPartnerStatueDice(_json); } public int Face { get; private set; } /// /// 种类 /// public string Type { get; private set; } public EventPartnerSpinType SpinPointParam { get; private set; } /// /// 3个一起出现时总共的分数 /// public int ComboBonus { get; private set; } public string Icon { get; private set; } public float AnimationTime { get; private set; } public float FxDelay { get; private set; } public const int __ID__ = 1179508025; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { SpinPointParam?.Resolve(_tables); PostResolve(); } public void TranslateText(System.Func translator) { SpinPointParam?.TranslateText(translator); } public override string ToString() { return "{ " + "Face:" + Face + "," + "Type:" + Type + "," + "SpinPointParam:" + SpinPointParam + "," + "ComboBonus:" + ComboBonus + "," + "Icon:" + Icon + "," + "AnimationTime:" + AnimationTime + "," + "FxDelay:" + FxDelay + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }