先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
97 lines
3.8 KiB
C#
97 lines
3.8 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 Theme : Bright.Config.BeanBase
|
||
{
|
||
public JSONNode json;
|
||
public Theme(JSONNode _json)
|
||
{
|
||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||
{ if(!_json["Image"].IsString) { throw new SerializationException(); } Image = _json["Image"]; }
|
||
{ if(!_json["Title"]["key"].IsString) { throw new SerializationException(); } Title_l10n_key = _json["Title"]["key"]; if(!_json["Title"]["text"].IsString) { throw new SerializationException(); } Title = _json["Title"]["text"]; }
|
||
{ var __json0 = _json["AlbumList"]; if(!__json0.IsArray) { throw new SerializationException(); } AlbumList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AlbumList.Add(__v0); } }
|
||
{ if(!_json["CollectionReward"].IsNumber) { throw new SerializationException(); } CollectionReward = _json["CollectionReward"]; }
|
||
{ var __json0 = _json["ExchangeList"]; if(!__json0.IsArray) { throw new SerializationException(); } ExchangeList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExchangeList.Add(__v0); } }
|
||
json = _json;
|
||
PostInit();
|
||
}
|
||
|
||
public Theme(int ID, string Image, string Title, System.Collections.Generic.List<int> AlbumList, int CollectionReward, System.Collections.Generic.List<int> ExchangeList )
|
||
{
|
||
this.ID = ID;
|
||
this.Image = Image;
|
||
this.Title = Title;
|
||
this.AlbumList = AlbumList;
|
||
this.CollectionReward = CollectionReward;
|
||
this.ExchangeList = ExchangeList;
|
||
PostInit();
|
||
}
|
||
|
||
public static Theme DeserializeTheme(JSONNode _json)
|
||
{
|
||
return new Theme(_json);
|
||
}
|
||
|
||
public int ID { get; private set; }
|
||
/// <summary>
|
||
/// 图片名称
|
||
/// </summary>
|
||
public string Image { get; private set; }
|
||
/// <summary>
|
||
/// 多语言key + 中文
|
||
/// </summary>
|
||
public string Title { get; private set; }
|
||
public string Title_l10n_key { get; }
|
||
/// <summary>
|
||
/// album表主键
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> AlbumList { get; private set; }
|
||
public int CollectionReward { get; private set; }
|
||
/// <summary>
|
||
/// 数组,分别对应3个品质的宝箱
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> ExchangeList { get; private set; }
|
||
|
||
public const int __ID__ = 80774569;
|
||
public override int GetTypeId() => __ID__;
|
||
|
||
public void Resolve(Dictionary<string, object> _tables)
|
||
{
|
||
PostResolve();
|
||
}
|
||
|
||
public void TranslateText(System.Func<string, string, string> translator)
|
||
{
|
||
Title = translator(Title_l10n_key, Title);
|
||
}
|
||
|
||
public override string ToString()
|
||
{
|
||
return "{ "
|
||
+ "ID:" + ID + ","
|
||
+ "Image:" + Image + ","
|
||
+ "Title:" + Title + ","
|
||
+ "AlbumList:" + Bright.Common.StringUtil.CollectionToString(AlbumList) + ","
|
||
+ "CollectionReward:" + CollectionReward + ","
|
||
+ "ExchangeList:" + Bright.Common.StringUtil.CollectionToString(ExchangeList) + ","
|
||
+ "}";
|
||
}
|
||
|
||
partial void PostInit();
|
||
partial void PostResolve();
|
||
}
|
||
}
|