NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/DataModelSpeed.cs

85 lines
2.3 KiB
C#
Raw Normal View History

2023-08-22 19:08:45 +08:00
//------------------------------------------------------------------------------
// <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 DataModelSpeed : Bright.Config.BeanBase
{
public DataModelSpeed(JSONNode _json)
{
{ if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; }
{ if(!_json["Run"].IsNumber) { throw new SerializationException(); } Run = _json["Run"]; }
{ if(!_json["Creep"].IsNumber) { throw new SerializationException(); } Creep = _json["Creep"]; }
{ if(!_json["Retreat"].IsNumber) { throw new SerializationException(); } Retreat = _json["Retreat"]; }
PostInit();
}
public DataModelSpeed(string Name, float Run, float Creep, float Retreat )
{
this.Name = Name;
this.Run = Run;
this.Creep = Creep;
this.Retreat = Retreat;
PostInit();
}
public static DataModelSpeed DeserializeDataModelSpeed(JSONNode _json)
{
return new DataModelSpeed(_json);
}
/// <summary>
/// 动作组名
/// </summary>
public string Name { get; private set; }
/// <summary>
/// 跑动
/// </summary>
public float Run { get; private set; }
/// <summary>
/// 爬行
/// </summary>
public float Creep { get; private set; }
/// <summary>
/// 撤退
/// </summary>
public float Retreat { get; private set; }
public const int __ID__ = 961884680;
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 "{ "
+ "Name:" + Name + ","
+ "Run:" + Run + ","
+ "Creep:" + Creep + ","
+ "Retreat:" + Retreat + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}