146 lines
6.4 KiB
C#
146 lines
6.4 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 ETChangeMaterial : EventTargetExtraDrop
|
||
{
|
||
public ETChangeMaterial(JSONNode _json) : base(_json)
|
||
{
|
||
{ if(!_json["ExtraDropList"].IsNumber) { throw new SerializationException(); } ExtraDropList = _json["ExtraDropList"]; }
|
||
{ if(!_json["ExtraCashDropList"].IsNumber) { throw new SerializationException(); } ExtraCashDropList = _json["ExtraCashDropList"]; }
|
||
{ var __json0 = _json["StatsChange"]; if(!__json0.IsArray) { throw new SerializationException(); } StatsChange = new System.Collections.Generic.List<System.Collections.Generic.List<float>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<float> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<float>(__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["ModeDelay"].IsNumber) { throw new SerializationException(); } ModeDelay = _json["ModeDelay"]; }
|
||
{ if(!_json["MaterialChange"].IsString) { throw new SerializationException(); } MaterialChange = _json["MaterialChange"]; }
|
||
{ if(!_json["MaterialChangeDelay"].IsNumber) { throw new SerializationException(); } MaterialChangeDelay = _json["MaterialChangeDelay"]; }
|
||
{ if(!_json["FxChange"].IsString) { throw new SerializationException(); } FxChange = _json["FxChange"]; }
|
||
{ if(!_json["FxChangeDelay"].IsNumber) { throw new SerializationException(); } FxChangeDelay = _json["FxChangeDelay"]; }
|
||
{ if(!_json["AudioChange"].IsString) { throw new SerializationException(); } AudioChange = _json["AudioChange"]; }
|
||
{ if(!_json["FxRewardScene"].IsString) { throw new SerializationException(); } FxRewardScene = _json["FxRewardScene"]; }
|
||
PostInit();
|
||
}
|
||
|
||
public ETChangeMaterial(int ExtraDropList, int ExtraCashDropList, System.Collections.Generic.List<System.Collections.Generic.List<float>> StatsChange, string Mode, string Bone, float ModeDelay, string MaterialChange, float MaterialChangeDelay, string FxChange, float FxChangeDelay, string AudioChange, string FxRewardScene ) : base()
|
||
{
|
||
this.ExtraDropList = ExtraDropList;
|
||
this.ExtraCashDropList = ExtraCashDropList;
|
||
this.StatsChange = StatsChange;
|
||
this.Mode = Mode;
|
||
this.Bone = Bone;
|
||
this.ModeDelay = ModeDelay;
|
||
this.MaterialChange = MaterialChange;
|
||
this.MaterialChangeDelay = MaterialChangeDelay;
|
||
this.FxChange = FxChange;
|
||
this.FxChangeDelay = FxChangeDelay;
|
||
this.AudioChange = AudioChange;
|
||
this.FxRewardScene = FxRewardScene;
|
||
PostInit();
|
||
}
|
||
|
||
public static ETChangeMaterial DeserializeETChangeMaterial(JSONNode _json)
|
||
{
|
||
return new ETChangeMaterial(_json);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 触发材质变化后一定有该掉落目标道具
|
||
/// </summary>
|
||
public int ExtraDropList { get; private set; }
|
||
/// <summary>
|
||
/// 触发材质变化后一定有该掉落,结算界面的钞票增加
|
||
/// </summary>
|
||
public int ExtraCashDropList { get; private set; }
|
||
/// <summary>
|
||
/// 属性变化,一共6个参数,都是直接乘:力量,速度,警惕,血量,逃跑速度,技能蓄力速度,逃跑触发血量提升
|
||
/// </summary>
|
||
public System.Collections.Generic.List<System.Collections.Generic.List<float>> StatsChange { get; private set; }
|
||
/// <summary>
|
||
/// 挂接模型名称
|
||
/// </summary>
|
||
public string Mode { get; private set; }
|
||
/// <summary>
|
||
/// 挂接挂点名称
|
||
/// </summary>
|
||
public string Bone { get; private set; }
|
||
/// <summary>
|
||
/// 模型延迟出现的时间
|
||
/// </summary>
|
||
public float ModeDelay { get; private set; }
|
||
/// <summary>
|
||
/// 材质替换方案
|
||
/// </summary>
|
||
public string MaterialChange { get; private set; }
|
||
/// <summary>
|
||
/// 材质替换的延时,从pulling阶段算起
|
||
/// </summary>
|
||
public float MaterialChangeDelay { get; private set; }
|
||
/// <summary>
|
||
/// 材质替换时的特效
|
||
/// </summary>
|
||
public string FxChange { get; private set; }
|
||
/// <summary>
|
||
/// 材质替换时的特效延迟播放时间,,从pulling阶段算起
|
||
/// </summary>
|
||
public float FxChangeDelay { get; private set; }
|
||
/// <summary>
|
||
/// 材质变换瞬间的音效
|
||
/// </summary>
|
||
public string AudioChange { get; private set; }
|
||
/// <summary>
|
||
/// 结算界面持续特效
|
||
/// </summary>
|
||
public string FxRewardScene { get; private set; }
|
||
|
||
public const int __ID__ = 224699270;
|
||
public override int GetTypeId() => __ID__;
|
||
|
||
public override void Resolve(Dictionary<string, object> _tables)
|
||
{
|
||
base.Resolve(_tables);
|
||
PostResolve();
|
||
}
|
||
|
||
public override void TranslateText(System.Func<string, string, string> translator)
|
||
{
|
||
base.TranslateText(translator);
|
||
}
|
||
|
||
public override string ToString()
|
||
{
|
||
return "{ "
|
||
+ "ExtraDropList:" + ExtraDropList + ","
|
||
+ "ExtraCashDropList:" + ExtraCashDropList + ","
|
||
+ "StatsChange:" + Bright.Common.StringUtil.CollectionToString(StatsChange) + ","
|
||
+ "Mode:" + Mode + ","
|
||
+ "Bone:" + Bone + ","
|
||
+ "ModeDelay:" + ModeDelay + ","
|
||
+ "MaterialChange:" + MaterialChange + ","
|
||
+ "MaterialChangeDelay:" + MaterialChangeDelay + ","
|
||
+ "FxChange:" + FxChange + ","
|
||
+ "FxChangeDelay:" + FxChangeDelay + ","
|
||
+ "AudioChange:" + AudioChange + ","
|
||
+ "FxRewardScene:" + FxRewardScene + ","
|
||
+ "}";
|
||
}
|
||
|
||
partial void PostInit();
|
||
partial void PostResolve();
|
||
}
|
||
}
|