Files
MinFt/Client/Assets/Scripts/Tables/AutoDeliveryMail.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

128 lines
5.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 AutoDeliveryMail : Bright.Config.BeanBase
{
public JSONNode json;
public AutoDeliveryMail(JSONNode _json)
{
{ if(!_json["MailID"].IsNumber) { throw new SerializationException(); } MailID = _json["MailID"]; }
{ var __json0 = _json["AccountLevelRange"]; if(!__json0.IsArray) { throw new SerializationException(); } AccountLevelRange = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AccountLevelRange.Add(__v0); } }
{ if(!_json["AccountCreateTimestamp"].IsString) { throw new SerializationException(); } AccountCreateTimestamp = _json["AccountCreateTimestamp"]; }
{ var __json0 = _json["LoginTimestampRange"]; if(!__json0.IsArray) { throw new SerializationException(); } LoginTimestampRange = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } LoginTimestampRange.Add(__v0); } }
{ if(!_json["ExpireDay"].IsNumber) { throw new SerializationException(); } ExpireDay = _json["ExpireDay"]; }
{ 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 AutoDeliveryMail(int MailID, System.Collections.Generic.List<int> AccountLevelRange, string AccountCreateTimestamp, System.Collections.Generic.List<string> LoginTimestampRange, int ExpireDay, string Title, string Content, string Inscribe, int DropID )
{
this.MailID = MailID;
this.AccountLevelRange = AccountLevelRange;
this.AccountCreateTimestamp = AccountCreateTimestamp;
this.LoginTimestampRange = LoginTimestampRange;
this.ExpireDay = ExpireDay;
this.Title = Title;
this.Content = Content;
this.Inscribe = Inscribe;
this.DropID = DropID;
PostInit();
}
public static AutoDeliveryMail DeserializeAutoDeliveryMail(JSONNode _json)
{
return new AutoDeliveryMail(_json);
}
/// <summary>
/// 对应邮件表主键,这部分会自动发放
/// </summary>
public int MailID { get; private set; }
/// <summary>
/// 在这个等级区间的玩家能触发邮件,填-1则没上限
/// </summary>
public System.Collections.Generic.List<int> AccountLevelRange { get; private set; }
/// <summary>
/// 时间戳格式,账号创建时间早于这个时间的玩家才会触发邮件
/// </summary>
public string AccountCreateTimestamp { get; private set; }
/// <summary>
/// 在这个时间段内登录的玩家,才能触发这个邮件
/// </summary>
public System.Collections.Generic.List<string> LoginTimestampRange { get; private set; }
/// <summary>
/// 收到邮件后这多天后过期
/// </summary>
public int ExpireDay { 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__ = 1292755770;
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 "{ "
+ "MailID:" + MailID + ","
+ "AccountLevelRange:" + Bright.Common.StringUtil.CollectionToString(AccountLevelRange) + ","
+ "AccountCreateTimestamp:" + AccountCreateTimestamp + ","
+ "LoginTimestampRange:" + Bright.Common.StringUtil.CollectionToString(LoginTimestampRange) + ","
+ "ExpireDay:" + ExpireDay + ","
+ "Title:" + Title + ","
+ "Content:" + Content + ","
+ "Inscribe:" + Inscribe + ","
+ "DropID:" + DropID + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}