//------------------------------------------------------------------------------
//
// 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 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; }
///
/// 最后停留在左边
///
public int LeftWeight { get; private set; }
///
/// 最后停留在右边
///
public int RightWeight { get; private set; }
///
/// 对应的图片编号
如果是道具则为-1
///
public int Quality { get; private set; }
///
/// 获得道具时的Drop编号
///
public int ItemDropID { get; private set; }
public const int __ID__ = -128833624;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Index:" + Index + ","
+ "Weight:" + Weight + ","
+ "LeftWeight:" + LeftWeight + ","
+ "RightWeight:" + RightWeight + ","
+ "Quality:" + Quality + ","
+ "ItemDropID:" + ItemDropID + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}