Files
MinFt/Client/Assets/Scripts/Tables/EventAdWheelReward.cs
2026-04-27 12:07:32 +08:00

103 lines
3.4 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 EventAdWheelReward : Bright.Config.BeanBase
{
public JSONNode json;
public EventAdWheelReward(JSONNode _json)
{
{ if(!_json["Index"].IsNumber) { throw new SerializationException(); } Index = _json["Index"]; }
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
{ if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; }
{ if(!_json["LeftWeight"].IsNumber) { throw new SerializationException(); } LeftWeight = _json["LeftWeight"]; }
{ if(!_json["RightWeight"].IsNumber) { throw new SerializationException(); } RightWeight = _json["RightWeight"]; }
{ if(!_json["Fx"].IsString) { throw new SerializationException(); } Fx = _json["Fx"]; }
{ if(!_json["Audio"].IsString) { throw new SerializationException(); } Audio = _json["Audio"]; }
json = _json;
PostInit();
}
public EventAdWheelReward(int Index, int Quality, int Weight, int DropID, int LeftWeight, int RightWeight, string Fx, string Audio )
{
this.Index = Index;
this.Quality = Quality;
this.Weight = Weight;
this.DropID = DropID;
this.LeftWeight = LeftWeight;
this.RightWeight = RightWeight;
this.Fx = Fx;
this.Audio = Audio;
PostInit();
}
public static EventAdWheelReward DeserializeEventAdWheelReward(JSONNode _json)
{
return new EventAdWheelReward(_json);
}
/// <summary>
/// 从红色开始算起,顺时针
/// </summary>
public int Index { get; private set; }
public int Quality { get; private set; }
public int Weight { get; private set; }
/// <summary>
/// 对应drop表
/// </summary>
public int DropID { get; private set; }
/// <summary>
/// 最后停留在左边
/// </summary>
public int LeftWeight { get; private set; }
/// <summary>
/// 最后停留在右边
/// </summary>
public int RightWeight { get; private set; }
public string Fx { get; private set; }
public string Audio { get; private set; }
public const int __ID__ = -489324051;
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 + ","
+ "Quality:" + Quality + ","
+ "Weight:" + Weight + ","
+ "DropID:" + DropID + ","
+ "LeftWeight:" + LeftWeight + ","
+ "RightWeight:" + RightWeight + ","
+ "Fx:" + Fx + ","
+ "Audio:" + Audio + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}