//------------------------------------------------------------------------------
//
// 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 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);
}
///
/// 动作组名
///
public string Name { get; private set; }
///
/// 跑动
///
public float Run { get; private set; }
///
/// 爬行
///
public float Creep { get; private set; }
///
/// 撤退
///
public float Retreat { get; private set; }
public const int __ID__ = 961884680;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Name:" + Name + ","
+ "Run:" + Run + ","
+ "Creep:" + Creep + ","
+ "Retreat:" + Retreat + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}