Files
2026-05-26 16:15:54 +08:00

92 lines
3.1 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
/// <summary>
/// 基于鱼编号的额外掉落
/// </summary>
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<MapFishList>(__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<MapFishList> 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);
}
/// <summary>
/// 基于地图的鱼的编号数组
/// </summary>
public System.Collections.Generic.List<MapFishList> ExtraDropList { get; private set; }
/// <summary>
/// 挂接模型名称
/// </summary>
public string Mode { get; private set; }
/// <summary>
/// 挂接挂点名称
/// </summary>
public string Bone { get; private set; }
/// <summary>
/// 特效名称
/// </summary>
public string Fx { get; private set; }
public const int __ID__ = 2125362477;
public override int GetTypeId() => __ID__;
public override void Resolve(Dictionary<string, object> _tables)
{
base.Resolve(_tables);
foreach(var _e in ExtraDropList) { _e?.Resolve(_tables); }
PostResolve();
}
public override void TranslateText(System.Func<string, string, string> 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();
}
}