//------------------------------------------------------------------------------ // // 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 EventCubeMeltCollection : Bright.Config.BeanBase { public JSONNode json; public EventCubeMeltCollection(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { var __json0 = _json["CollectingItemRequirement"]; if(!__json0.IsArray) { throw new SerializationException(); } CollectingItemRequirement = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CollectingItemRequirement.Add(__v0); } } { var __json0 = _json["CollectingCountRequirement"]; if(!__json0.IsArray) { throw new SerializationException(); } CollectingCountRequirement = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CollectingCountRequirement.Add(__v0); } } { var __json0 = _json["CollectingItemProb"]; if(!__json0.IsArray) { throw new SerializationException(); } CollectingItemProb = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CollectingItemProb.Add(__v0); } } { if(!_json["CollectingIcon"].IsString) { throw new SerializationException(); } CollectingIcon = _json["CollectingIcon"]; } { if(!_json["CollectingPrefab"].IsString) { throw new SerializationException(); } CollectingPrefab = _json["CollectingPrefab"]; } { if(!_json["CollectingVideo"].IsString) { throw new SerializationException(); } CollectingVideo = _json["CollectingVideo"]; } { if(!_json["CollectingReward"].IsNumber) { throw new SerializationException(); } CollectingReward = _json["CollectingReward"]; } json = _json; PostInit(); } public EventCubeMeltCollection(int ID, System.Collections.Generic.List CollectingItemRequirement, System.Collections.Generic.List CollectingCountRequirement, System.Collections.Generic.List CollectingItemProb, string CollectingIcon, string CollectingPrefab, string CollectingVideo, int CollectingReward ) { this.ID = ID; this.CollectingItemRequirement = CollectingItemRequirement; this.CollectingCountRequirement = CollectingCountRequirement; this.CollectingItemProb = CollectingItemProb; this.CollectingIcon = CollectingIcon; this.CollectingPrefab = CollectingPrefab; this.CollectingVideo = CollectingVideo; this.CollectingReward = CollectingReward; PostInit(); } public static EventCubeMeltCollection DeserializeEventCubeMeltCollection(JSONNode _json) { return new EventCubeMeltCollection(_json); } public int ID { get; private set; } /// /// 对应EventCubeMeltItem主键 /// public System.Collections.Generic.List CollectingItemRequirement { get; private set; } /// /// 和前边一一对应 /// public System.Collections.Generic.List CollectingCountRequirement { get; private set; } /// /// 和前边一一对应 /// public System.Collections.Generic.List CollectingItemProb { get; private set; } public string CollectingIcon { get; private set; } public string CollectingPrefab { get; private set; } public string CollectingVideo { get; private set; } /// /// 对应Drop表主键 /// public int CollectingReward { get; private set; } public const int __ID__ = -1638687859; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "CollectingItemRequirement:" + Bright.Common.StringUtil.CollectionToString(CollectingItemRequirement) + "," + "CollectingCountRequirement:" + Bright.Common.StringUtil.CollectionToString(CollectingCountRequirement) + "," + "CollectingItemProb:" + Bright.Common.StringUtil.CollectionToString(CollectingItemProb) + "," + "CollectingIcon:" + CollectingIcon + "," + "CollectingPrefab:" + CollectingPrefab + "," + "CollectingVideo:" + CollectingVideo + "," + "CollectingReward:" + CollectingReward + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }