备份CatanBuilding瘦身独立工程
This commit is contained in:
90
Assets/Scripts/Tables/StepMmt.cs
Normal file
90
Assets/Scripts/Tables/StepMmt.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 StepMmt : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public StepMmt(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["StartTime"].IsNumber) { throw new SerializationException(); } StartTime = _json["StartTime"]; }
|
||||
{ if(!_json["PlayTime"].IsNumber) { throw new SerializationException(); } PlayTime = _json["PlayTime"]; }
|
||||
{ if(!_json["BuildRequired"].IsNumber) { throw new SerializationException(); } BuildRequired = _json["BuildRequired"]; }
|
||||
{ if(!_json["FixRequired"].IsNumber) { throw new SerializationException(); } FixRequired = _json["FixRequired"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public StepMmt(int ID, float StartTime, float PlayTime, int BuildRequired, int FixRequired )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.StartTime = StartTime;
|
||||
this.PlayTime = PlayTime;
|
||||
this.BuildRequired = BuildRequired;
|
||||
this.FixRequired = FixRequired;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static StepMmt DeserializeStepMmt(JSONNode _json)
|
||||
{
|
||||
return new StepMmt(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// timeline中时间
|
||||
/// </summary>
|
||||
public float StartTime { get; private set; }
|
||||
/// <summary>
|
||||
/// 动画播放时间
|
||||
/// </summary>
|
||||
public float PlayTime { get; private set; }
|
||||
/// <summary>
|
||||
/// 建造所需钞票
|
||||
/// </summary>
|
||||
public int BuildRequired { get; private set; }
|
||||
/// <summary>
|
||||
/// 修复所需钞票
|
||||
/// </summary>
|
||||
public int FixRequired { get; private set; }
|
||||
|
||||
public const int __ID__ = -228934584;
|
||||
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 "{ "
|
||||
+ "ID:" + ID + ","
|
||||
+ "StartTime:" + StartTime + ","
|
||||
+ "PlayTime:" + PlayTime + ","
|
||||
+ "BuildRequired:" + BuildRequired + ","
|
||||
+ "FixRequired:" + FixRequired + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user