//------------------------------------------------------------------------------ // // 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 ETDropByFish : EventTargetExtraDrop { public ETDropByFish(JSONNode _json) : base(_json) { { var __json0 = _json["ExtraDropList"]; if(!__json0.IsArray) { throw new SerializationException(); } ExtraDropList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { MapFishList __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = MapFishList.DeserializeMapFishList(__e0); } ExtraDropList.Add(__v0); } } { if(!_json["Mode"].IsString) { throw new SerializationException(); } Mode = _json["Mode"]; } { if(!_json["Bone"].IsString) { throw new SerializationException(); } Bone = _json["Bone"]; } { if(!_json["Fx"].IsString) { throw new SerializationException(); } Fx = _json["Fx"]; } PostInit(); } public ETDropByFish(System.Collections.Generic.List ExtraDropList, string Mode, string Bone, string Fx ) : base() { this.ExtraDropList = ExtraDropList; this.Mode = Mode; this.Bone = Bone; this.Fx = Fx; PostInit(); } public static ETDropByFish DeserializeETDropByFish(JSONNode _json) { return new ETDropByFish(_json); } /// /// 基于地图的鱼的编号数组 /// public System.Collections.Generic.List ExtraDropList { get; private set; } /// /// 挂接模型名称 /// public string Mode { get; private set; } /// /// 挂接挂点名称 /// public string Bone { get; private set; } /// /// 特效名称 /// public string Fx { get; private set; } public const int __ID__ = 2125362477; public override int GetTypeId() => __ID__; public override void Resolve(Dictionary _tables) { base.Resolve(_tables); foreach(var _e in ExtraDropList) { _e?.Resolve(_tables); } PostResolve(); } public override void TranslateText(System.Func translator) { base.TranslateText(translator); foreach(var _e in ExtraDropList) { _e?.TranslateText(translator); } } public override string ToString() { return "{ " + "ExtraDropList:" + Bright.Common.StringUtil.CollectionToString(ExtraDropList) + "," + "Mode:" + Mode + "," + "Bone:" + Bone + "," + "Fx:" + Fx + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }