//------------------------------------------------------------------------------ // // 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 EventPartnerSpinPoint : Bright.Config.BeanBase { public JSONNode json; public EventPartnerSpinPoint(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; } { if(!_json["SpinPointParam"].IsObject) { throw new SerializationException(); } SpinPointParam = EventPartnerSpinType.DeserializeEventPartnerSpinType(_json["SpinPointParam"]); } { if(!_json["ShowType"].IsString) { throw new SerializationException(); } ShowType = _json["ShowType"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } json = _json; PostInit(); } public EventPartnerSpinPoint(int ID, int Weight, EventPartnerSpinType SpinPointParam, string ShowType, string Icon ) { this.ID = ID; this.Weight = Weight; this.SpinPointParam = SpinPointParam; this.ShowType = ShowType; this.Icon = Icon; PostInit(); } public static EventPartnerSpinPoint DeserializeEventPartnerSpinPoint(JSONNode _json) { return new EventPartnerSpinPoint(_json); } public int ID { get; private set; } public int Weight { get; private set; } public EventPartnerSpinType SpinPointParam { get; private set; } public string ShowType { get; private set; } public string Icon { get; private set; } public const int __ID__ = 1346698528; 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 "{ " + "ID:" + ID + "," + "Weight:" + Weight + "," + "SpinPointParam:" + SpinPointParam + "," + "ShowType:" + ShowType + "," + "Icon:" + Icon + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }