92 lines
2.7 KiB
C#
92 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.LevelCfg
|
||
|
|
{
|
||
|
|
|
||
|
|
public sealed partial class DataLevelGroup : Bright.Config.BeanBase
|
||
|
|
{
|
||
|
|
public DataLevelGroup(JSONNode _json)
|
||
|
|
{
|
||
|
|
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
|
||
|
|
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (LevelCfg.LevelGroupType)_json["Type"].AsInt; }
|
||
|
|
{ if(!_json["MaterialIcon"].IsString) { throw new SerializationException(); } MaterialIcon = _json["MaterialIcon"]; }
|
||
|
|
{ if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; }
|
||
|
|
{ if(!_json["Desc"].IsString) { throw new SerializationException(); } Desc = _json["Desc"]; }
|
||
|
|
PostInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
public DataLevelGroup(int Id, LevelCfg.LevelGroupType Type, string MaterialIcon, string Name, string Desc )
|
||
|
|
{
|
||
|
|
this.Id = Id;
|
||
|
|
this.Type = Type;
|
||
|
|
this.MaterialIcon = MaterialIcon;
|
||
|
|
this.Name = Name;
|
||
|
|
this.Desc = Desc;
|
||
|
|
PostInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
public static DataLevelGroup DeserializeDataLevelGroup(JSONNode _json)
|
||
|
|
{
|
||
|
|
return new LevelCfg.DataLevelGroup(_json);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 关卡组ID
|
||
|
|
/// </summary>
|
||
|
|
public int Id { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 关卡类型
|
||
|
|
/// </summary>
|
||
|
|
public LevelCfg.LevelGroupType Type { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 素材图标
|
||
|
|
/// </summary>
|
||
|
|
public string MaterialIcon { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 关卡组名字
|
||
|
|
/// </summary>
|
||
|
|
public string Name { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 关卡组描述
|
||
|
|
/// </summary>
|
||
|
|
public string Desc { get; private set; }
|
||
|
|
|
||
|
|
public const int __ID__ = 1396613651;
|
||
|
|
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 + ","
|
||
|
|
+ "Type:" + Type + ","
|
||
|
|
+ "MaterialIcon:" + MaterialIcon + ","
|
||
|
|
+ "Name:" + Name + ","
|
||
|
|
+ "Desc:" + Desc + ","
|
||
|
|
+ "}";
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void PostInit();
|
||
|
|
partial void PostResolve();
|
||
|
|
}
|
||
|
|
}
|