先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
91 lines
4.0 KiB
C#
91 lines
4.0 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
|
|
{
|
|
|
|
public sealed partial class RodShakeParam : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public RodShakeParam(JSONNode _json)
|
|
{
|
|
{ if(!_json["Animation"].IsString) { throw new SerializationException(); } Animation = _json["Animation"]; }
|
|
{ var __json0 = _json["PosAmp"]; if(!__json0.IsArray) { throw new SerializationException(); } PosAmp = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PosAmp.Add(__v0); } }
|
|
{ var __json0 = _json["PosPeriod"]; if(!__json0.IsArray) { throw new SerializationException(); } PosPeriod = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PosPeriod.Add(__v0); } }
|
|
{ var __json0 = _json["ScaleAmp"]; if(!__json0.IsArray) { throw new SerializationException(); } ScaleAmp = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ScaleAmp.Add(__v0); } }
|
|
{ var __json0 = _json["ScalePeriod"]; if(!__json0.IsArray) { throw new SerializationException(); } ScalePeriod = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ScalePeriod.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public RodShakeParam(string Animation, System.Collections.Generic.List<float> PosAmp, System.Collections.Generic.List<float> PosPeriod, System.Collections.Generic.List<float> ScaleAmp, System.Collections.Generic.List<float> ScalePeriod )
|
|
{
|
|
this.Animation = Animation;
|
|
this.PosAmp = PosAmp;
|
|
this.PosPeriod = PosPeriod;
|
|
this.ScaleAmp = ScaleAmp;
|
|
this.ScalePeriod = ScalePeriod;
|
|
PostInit();
|
|
}
|
|
|
|
public static RodShakeParam DeserializeRodShakeParam(JSONNode _json)
|
|
{
|
|
return new RodShakeParam(_json);
|
|
}
|
|
|
|
public string Animation { get; private set; }
|
|
/// <summary>
|
|
/// position的振幅
|
|
/// </summary>
|
|
public System.Collections.Generic.List<float> PosAmp { get; private set; }
|
|
/// <summary>
|
|
/// position的周期<br/>单位秒
|
|
/// </summary>
|
|
public System.Collections.Generic.List<float> PosPeriod { get; private set; }
|
|
/// <summary>
|
|
/// scale的振幅
|
|
/// </summary>
|
|
public System.Collections.Generic.List<float> ScaleAmp { get; private set; }
|
|
/// <summary>
|
|
/// scale的周期
|
|
/// </summary>
|
|
public System.Collections.Generic.List<float> ScalePeriod { get; private set; }
|
|
|
|
public const int __ID__ = 2121057838;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "Animation:" + Animation + ","
|
|
+ "PosAmp:" + Bright.Common.StringUtil.CollectionToString(PosAmp) + ","
|
|
+ "PosPeriod:" + Bright.Common.StringUtil.CollectionToString(PosPeriod) + ","
|
|
+ "ScaleAmp:" + Bright.Common.StringUtil.CollectionToString(ScaleAmp) + ","
|
|
+ "ScalePeriod:" + Bright.Common.StringUtil.CollectionToString(ScalePeriod) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|