备份CatanBuilding瘦身独立工程
This commit is contained in:
96
Assets/Scripts/Tables/SystemMail.cs
Normal file
96
Assets/Scripts/Tables/SystemMail.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 SystemMail : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public SystemMail(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ 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"]; }
|
||||
{ if(!_json["Content"]["key"].IsString) { throw new SerializationException(); } Content_l10n_key = _json["Content"]["key"]; if(!_json["Content"]["text"].IsString) { throw new SerializationException(); } Content = _json["Content"]["text"]; }
|
||||
{ if(!_json["Inscribe"]["key"].IsString) { throw new SerializationException(); } Inscribe_l10n_key = _json["Inscribe"]["key"]; if(!_json["Inscribe"]["text"].IsString) { throw new SerializationException(); } Inscribe = _json["Inscribe"]["text"]; }
|
||||
{ if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public SystemMail(int ID, string Title, string Content, string Inscribe, int DropID )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Title = Title;
|
||||
this.Content = Content;
|
||||
this.Inscribe = Inscribe;
|
||||
this.DropID = DropID;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static SystemMail DeserializeSystemMail(JSONNode _json)
|
||||
{
|
||||
return new SystemMail(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// key
|
||||
/// </summary>
|
||||
public string Title { get; private set; }
|
||||
public string Title_l10n_key { get; }
|
||||
/// <summary>
|
||||
/// key
|
||||
/// </summary>
|
||||
public string Content { get; private set; }
|
||||
public string Content_l10n_key { get; }
|
||||
/// <summary>
|
||||
/// key
|
||||
/// </summary>
|
||||
public string Inscribe { get; private set; }
|
||||
public string Inscribe_l10n_key { get; }
|
||||
/// <summary>
|
||||
/// 对应Drop表主键
|
||||
/// </summary>
|
||||
public int DropID { get; private set; }
|
||||
|
||||
public const int __ID__ = -1658840922;
|
||||
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);
|
||||
Content = translator(Content_l10n_key, Content);
|
||||
Inscribe = translator(Inscribe_l10n_key, Inscribe);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "ID:" + ID + ","
|
||||
+ "Title:" + Title + ","
|
||||
+ "Content:" + Content + ","
|
||||
+ "Inscribe:" + Inscribe + ","
|
||||
+ "DropID:" + DropID + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user