备份CatanBuilding瘦身独立工程
This commit is contained in:
106
Assets/Scripts/Tables/PvpStore.cs
Normal file
106
Assets/Scripts/Tables/PvpStore.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public int CellId { get; private set; }
|
||||
/// <summary>
|
||||
/// 若ItemType=9,此列为品质,1绿2蓝3紫4橙5彩
|
||||
/// </summary>
|
||||
public int ItemId { get; private set; }
|
||||
public int ItemNumber { get; private set; }
|
||||
/// <summary>
|
||||
/// 代币Id
|
||||
/// </summary>
|
||||
public int TokenId { get; private set; }
|
||||
public int TokenNumber { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
public string SpecialRoot { get; private set; }
|
||||
/// <summary>
|
||||
/// 打点统计用
|
||||
/// </summary>
|
||||
public int Type { get; private set; }
|
||||
|
||||
public const int __ID__ = -1671158793;
|
||||
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 + ","
|
||||
+ "CellId:" + CellId + ","
|
||||
+ "ItemId:" + ItemId + ","
|
||||
+ "ItemNumber:" + ItemNumber + ","
|
||||
+ "TokenId:" + TokenId + ","
|
||||
+ "TokenNumber:" + TokenNumber + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "SpecialRoot:" + SpecialRoot + ","
|
||||
+ "Type:" + Type + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user