备份CatanBuilding瘦身独立工程
This commit is contained in:
99
Assets/Scripts/Tables/Album.cs
Normal file
99
Assets/Scripts/Tables/Album.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Album : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public Album(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
|
||||
{ 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["PictureList"]; if(!__json0.IsArray) { throw new SerializationException(); } PictureList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PictureList.Add(__v0); } }
|
||||
{ if(!_json["CollectionReward"].IsNumber) { throw new SerializationException(); } CollectionReward = _json["CollectionReward"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public Album(int ID, int Quality, string Image, string Title, System.Collections.Generic.List<int> PictureList, int CollectionReward )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Quality = Quality;
|
||||
this.Image = Image;
|
||||
this.Title = Title;
|
||||
this.PictureList = PictureList;
|
||||
this.CollectionReward = CollectionReward;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static Album DeserializeAlbum(JSONNode _json)
|
||||
{
|
||||
return new Album(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// 1:白色<br/>2:蓝色<br/>3:紫色<br/>4:橙色
|
||||
/// </summary>
|
||||
public int Quality { 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>
|
||||
/// picture表主键
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<int> PictureList { get; private set; }
|
||||
/// <summary>
|
||||
/// 相册中所有照片收集齐后,提供的奖励
|
||||
/// </summary>
|
||||
public int CollectionReward { get; private set; }
|
||||
|
||||
public const int __ID__ = 63344207;
|
||||
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 + ","
|
||||
+ "Quality:" + Quality + ","
|
||||
+ "Image:" + Image + ","
|
||||
+ "Title:" + Title + ","
|
||||
+ "PictureList:" + Bright.Common.StringUtil.CollectionToString(PictureList) + ","
|
||||
+ "CollectionReward:" + CollectionReward + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user