//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
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; }
///
/// 1:活动开启时,玩家每日登录时;2、活动结束后,玩家首次登录时
///
public int NoticeType { get; private set; }
///
/// 每日最多几次
///
public int NoticeParam { get; private set; }
///
/// 按照1、2、3、4的先后顺序弹出
///
public int FaceOrder { get; private set; }
///
/// 如果为1,则为服务器事件
不受到拍脸顺序和最大拍脸数量的影响
///
public int ServerType { get; private set; }
public const int __ID__ = 2096671185;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Prefab:" + Prefab + ","
+ "NoticeType:" + NoticeType + ","
+ "NoticeParam:" + NoticeParam + ","
+ "FaceOrder:" + FaceOrder + ","
+ "ServerType:" + ServerType + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}