95 lines
3.0 KiB
C#
95 lines
3.0 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 EventJigsawPuzzleReward : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventJigsawPuzzleReward(JSONNode _json)
|
|
{
|
|
{ if(!_json["Index"].IsNumber) { throw new SerializationException(); } Index = _json["Index"]; }
|
|
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
|
|
{ if(!_json["LeftWeight"].IsNumber) { throw new SerializationException(); } LeftWeight = _json["LeftWeight"]; }
|
|
{ if(!_json["RightWeight"].IsNumber) { throw new SerializationException(); } RightWeight = _json["RightWeight"]; }
|
|
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
|
|
{ if(!_json["ItemDropID"].IsNumber) { throw new SerializationException(); } ItemDropID = _json["ItemDropID"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventJigsawPuzzleReward(int Index, int Weight, int LeftWeight, int RightWeight, int Quality, int ItemDropID )
|
|
{
|
|
this.Index = Index;
|
|
this.Weight = Weight;
|
|
this.LeftWeight = LeftWeight;
|
|
this.RightWeight = RightWeight;
|
|
this.Quality = Quality;
|
|
this.ItemDropID = ItemDropID;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventJigsawPuzzleReward DeserializeEventJigsawPuzzleReward(JSONNode _json)
|
|
{
|
|
return new EventJigsawPuzzleReward(_json);
|
|
}
|
|
|
|
public int Index { get; private set; }
|
|
public int Weight { get; private set; }
|
|
/// <summary>
|
|
/// 最后停留在左边
|
|
/// </summary>
|
|
public int LeftWeight { get; private set; }
|
|
/// <summary>
|
|
/// 最后停留在右边
|
|
/// </summary>
|
|
public int RightWeight { get; private set; }
|
|
/// <summary>
|
|
/// 对应的图片编号<br/>如果是道具则为-1
|
|
/// </summary>
|
|
public int Quality { get; private set; }
|
|
/// <summary>
|
|
/// 获得道具时的Drop编号
|
|
/// </summary>
|
|
public int ItemDropID { get; private set; }
|
|
|
|
public const int __ID__ = -128833624;
|
|
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 "{ "
|
|
+ "Index:" + Index + ","
|
|
+ "Weight:" + Weight + ","
|
|
+ "LeftWeight:" + LeftWeight + ","
|
|
+ "RightWeight:" + RightWeight + ","
|
|
+ "Quality:" + Quality + ","
|
|
+ "ItemDropID:" + ItemDropID + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|