//------------------------------------------------------------------------------ // // 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 ETNewItem : EventTargetExtraDrop { public ETNewItem(JSONNode _json) : base(_json) { { var __json0 = _json["NewItemID"]; if(!__json0.IsArray) { throw new SerializationException(); } NewItemID = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } NewItemID.Add(__v0); } } { var __json0 = _json["ExtraDropList"]; if(!__json0.IsArray) { throw new SerializationException(); } ExtraDropList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExtraDropList.Add(__v0); } } { var __json0 = _json["PerformanceDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } PerformanceDelay = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PerformanceDelay.Add(__v0); } } { var __json0 = _json["IsDarkness"]; if(!__json0.IsArray) { throw new SerializationException(); } IsDarkness = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { bool __v0; { if(!__e0.IsBoolean) { throw new SerializationException(); } __v0 = __e0; } IsDarkness.Add(__v0); } } { var __json0 = _json["FxScene"]; if(!__json0.IsArray) { throw new SerializationException(); } FxScene = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } FxScene.Add(__v0); } } { var __json0 = _json["AudioScene"]; if(!__json0.IsArray) { throw new SerializationException(); } AudioScene = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } AudioScene.Add(__v0); } } PostInit(); } public ETNewItem(System.Collections.Generic.List NewItemID, System.Collections.Generic.List ExtraDropList, System.Collections.Generic.List PerformanceDelay, System.Collections.Generic.List IsDarkness, System.Collections.Generic.List FxScene, System.Collections.Generic.List AudioScene ) : base() { this.NewItemID = NewItemID; this.ExtraDropList = ExtraDropList; this.PerformanceDelay = PerformanceDelay; this.IsDarkness = IsDarkness; this.FxScene = FxScene; this.AudioScene = AudioScene; PostInit(); } public static ETNewItem DeserializeETNewItem(JSONNode _json) { return new ETNewItem(_json); } /// /// 新增参与掉落的物品的编号 /// public System.Collections.Generic.List NewItemID { get; private set; } /// /// 参与掉落的物品的额外掉落 /// public System.Collections.Generic.List ExtraDropList { get; private set; } /// /// 天气压黑,特效,音效出现的延迟时间 /// public System.Collections.Generic.List PerformanceDelay { get; private set; } /// /// 是否天气压黑,钓到这鱼的时候就压黑,无论是否吃鱼 /// public System.Collections.Generic.List IsDarkness { get; private set; } /// /// 钓鱼时场景播放的特效,进入pulling阶段时消失 /// public System.Collections.Generic.List FxScene { get; private set; } /// /// 钓鱼时场景播放的音效 /// public System.Collections.Generic.List AudioScene { get; private set; } public const int __ID__ = -578550492; public override int GetTypeId() => __ID__; public override void Resolve(Dictionary _tables) { base.Resolve(_tables); PostResolve(); } public override void TranslateText(System.Func translator) { base.TranslateText(translator); } public override string ToString() { return "{ " + "NewItemID:" + Bright.Common.StringUtil.CollectionToString(NewItemID) + "," + "ExtraDropList:" + Bright.Common.StringUtil.CollectionToString(ExtraDropList) + "," + "PerformanceDelay:" + Bright.Common.StringUtil.CollectionToString(PerformanceDelay) + "," + "IsDarkness:" + Bright.Common.StringUtil.CollectionToString(IsDarkness) + "," + "FxScene:" + Bright.Common.StringUtil.CollectionToString(FxScene) + "," + "AudioScene:" + Bright.Common.StringUtil.CollectionToString(AudioScene) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }