//------------------------------------------------------------------------------
//
// 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 ETDropAfterDrop : EventTargetExtraDrop
{
public ETDropAfterDrop(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) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExtraDropList.Add(__v0); } }
{ var __json0 = _json["ExtraCashDropList"]; if(!__json0.IsArray) { throw new SerializationException(); } ExtraCashDropList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExtraCashDropList.Add(__v0); } }
{ var __json0 = _json["StatsChange"]; if(!__json0.IsArray) { throw new SerializationException(); } StatsChange = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { float __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } StatsChange.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 ETDropAfterDrop(System.Collections.Generic.List ExtraDropList, System.Collections.Generic.List ExtraCashDropList, System.Collections.Generic.List> StatsChange, string Mode, string Bone, string Fx ) : base()
{
this.ExtraDropList = ExtraDropList;
this.ExtraCashDropList = ExtraCashDropList;
this.StatsChange = StatsChange;
this.Mode = Mode;
this.Bone = Bone;
this.Fx = Fx;
PostInit();
}
public static ETDropAfterDrop DeserializeETDropAfterDrop(JSONNode _json)
{
return new ETDropAfterDrop(_json);
}
///
/// 触发掉落后一定有该掉落目标道具
///
public System.Collections.Generic.List ExtraDropList { get; private set; }
///
/// 触发掉落后一定有该掉落,结算界面的钞票增加
///
public System.Collections.Generic.List ExtraCashDropList { get; private set; }
///
/// 属性变化,一共6个参数,都是直接乘:力量,速度,警惕,血量,逃跑速度,技能蓄力速度,逃跑触发血量提升
///
public System.Collections.Generic.List> StatsChange { 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__ = 1078568013;
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 "{ "
+ "ExtraDropList:" + Bright.Common.StringUtil.CollectionToString(ExtraDropList) + ","
+ "ExtraCashDropList:" + Bright.Common.StringUtil.CollectionToString(ExtraCashDropList) + ","
+ "StatsChange:" + Bright.Common.StringUtil.CollectionToString(StatsChange) + ","
+ "Mode:" + Mode + ","
+ "Bone:" + Bone + ","
+ "Fx:" + Fx + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}