Files
2026-05-26 16:15:54 +08:00

95 lines
3.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <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 FaceUI : Bright.Config.BeanBase
{
public JSONNode json;
public FaceUI(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Prefab"].IsString) { throw new SerializationException(); } Prefab = _json["Prefab"]; }
{ if(!_json["NoticeType"].IsNumber) { throw new SerializationException(); } NoticeType = _json["NoticeType"]; }
{ if(!_json["NoticeParam"].IsNumber) { throw new SerializationException(); } NoticeParam = _json["NoticeParam"]; }
{ if(!_json["FaceOrder"].IsNumber) { throw new SerializationException(); } FaceOrder = _json["FaceOrder"]; }
{ if(!_json["ServerType"].IsNumber) { throw new SerializationException(); } ServerType = _json["ServerType"]; }
json = _json;
PostInit();
}
public FaceUI(int ID, string Prefab, int NoticeType, int NoticeParam, int FaceOrder, int ServerType )
{
this.ID = ID;
this.Prefab = Prefab;
this.NoticeType = NoticeType;
this.NoticeParam = NoticeParam;
this.FaceOrder = FaceOrder;
this.ServerType = ServerType;
PostInit();
}
public static FaceUI DeserializeFaceUI(JSONNode _json)
{
return new FaceUI(_json);
}
public int ID { get; private set; }
public string Prefab { get; private set; }
/// <summary>
/// 1活动开启时玩家每日登录时2、活动结束后玩家首次登录时
/// </summary>
public int NoticeType { get; private set; }
/// <summary>
/// 每日最多几次
/// </summary>
public int NoticeParam { get; private set; }
/// <summary>
/// 按照1、2、3、4的先后顺序弹出
/// </summary>
public int FaceOrder { get; private set; }
/// <summary>
/// 如果为1则为服务器事件<br/>不受到拍脸顺序和最大拍脸数量的影响
/// </summary>
public int ServerType { get; private set; }
public const int __ID__ = 2096671185;
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 + ","
+ "Prefab:" + Prefab + ","
+ "NoticeType:" + NoticeType + ","
+ "NoticeParam:" + NoticeParam + ","
+ "FaceOrder:" + FaceOrder + ","
+ "ServerType:" + ServerType + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}