先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
91 lines
2.7 KiB
C#
91 lines
2.7 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 ConstructionStep : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public ConstructionStep(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 ConstructionStep(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 ConstructionStep DeserializeConstructionStep(JSONNode _json)
|
|
{
|
|
return new ConstructionStep(_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__ = 2146238301;
|
|
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();
|
|
}
|
|
}
|