备份CatanBuilding瘦身独立工程
This commit is contained in:
90
Assets/Scripts/Tables/RodShakeParam.cs
Normal file
90
Assets/Scripts/Tables/RodShakeParam.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user