//------------------------------------------------------------------------------
//
// 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 PvpStore : Bright.Config.BeanBase
{
public JSONNode json;
public PvpStore(JSONNode _json)
{
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
{ if(!_json["CellId"].IsNumber) { throw new SerializationException(); } CellId = _json["CellId"]; }
{ if(!_json["ItemId"].IsNumber) { throw new SerializationException(); } ItemId = _json["ItemId"]; }
{ if(!_json["ItemNumber"].IsNumber) { throw new SerializationException(); } ItemNumber = _json["ItemNumber"]; }
{ if(!_json["TokenId"].IsNumber) { throw new SerializationException(); } TokenId = _json["TokenId"]; }
{ if(!_json["TokenNumber"].IsNumber) { throw new SerializationException(); } TokenNumber = _json["TokenNumber"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["SpecialRoot"].IsString) { throw new SerializationException(); } SpecialRoot = _json["SpecialRoot"]; }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = _json["Type"]; }
json = _json;
PostInit();
}
public PvpStore(int Id, int CellId, int ItemId, int ItemNumber, int TokenId, int TokenNumber, string Icon, string SpecialRoot, int Type )
{
this.Id = Id;
this.CellId = CellId;
this.ItemId = ItemId;
this.ItemNumber = ItemNumber;
this.TokenId = TokenId;
this.TokenNumber = TokenNumber;
this.Icon = Icon;
this.SpecialRoot = SpecialRoot;
this.Type = Type;
PostInit();
}
public static PvpStore DeserializePvpStore(JSONNode _json)
{
return new PvpStore(_json);
}
///
/// 主键
///
public int Id { get; private set; }
public int CellId { get; private set; }
///
/// 若ItemType=9,此列为品质,1绿2蓝3紫4橙5彩
///
public int ItemId { get; private set; }
public int ItemNumber { get; private set; }
///
/// 代币Id
///
public int TokenId { get; private set; }
public int TokenNumber { get; private set; }
public string Icon { get; private set; }
public string SpecialRoot { get; private set; }
///
/// 打点统计用
///
public int Type { get; private set; }
public const int __ID__ = -1671158793;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "CellId:" + CellId + ","
+ "ItemId:" + ItemId + ","
+ "ItemNumber:" + ItemNumber + ","
+ "TokenId:" + TokenId + ","
+ "TokenNumber:" + TokenNumber + ","
+ "Icon:" + Icon + ","
+ "SpecialRoot:" + SpecialRoot + ","
+ "Type:" + Type + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}