备份CatanBuilding瘦身独立工程
This commit is contained in:
125
Assets/Scripts/Tables/EventScratchCard.cs
Normal file
125
Assets/Scripts/Tables/EventScratchCard.cs
Normal file
@@ -0,0 +1,125 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 EventScratchCard : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public EventScratchCard(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
|
||||
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
|
||||
{ if(!_json["DeltaLuck"].IsNumber) { throw new SerializationException(); } DeltaLuck = _json["DeltaLuck"]; }
|
||||
{ if(!_json["LuckParameter"].IsNumber) { throw new SerializationException(); } LuckParameter = _json["LuckParameter"]; }
|
||||
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = _json["Type"]; }
|
||||
{ if(!_json["CorePercent"].IsNumber) { throw new SerializationException(); } CorePercent = _json["CorePercent"]; }
|
||||
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
||||
{ if(!_json["Icon2"].IsString) { throw new SerializationException(); } Icon2 = _json["Icon2"]; }
|
||||
{ if(!_json["Card"].IsString) { throw new SerializationException(); } Card = _json["Card"]; }
|
||||
{ if(!_json["RewardIcon"].IsString) { throw new SerializationException(); } RewardIcon = _json["RewardIcon"]; }
|
||||
{ if(!_json["Count"].IsNumber) { throw new SerializationException(); } Count = _json["Count"]; }
|
||||
{ if(!_json["DropReward"].IsNumber) { throw new SerializationException(); } DropReward = _json["DropReward"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public EventScratchCard(int ID, int Quality, float Weight, float DeltaLuck, float LuckParameter, int Type, float CorePercent, string Icon, string Icon2, string Card, string RewardIcon, int Count, int DropReward )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Quality = Quality;
|
||||
this.Weight = Weight;
|
||||
this.DeltaLuck = DeltaLuck;
|
||||
this.LuckParameter = LuckParameter;
|
||||
this.Type = Type;
|
||||
this.CorePercent = CorePercent;
|
||||
this.Icon = Icon;
|
||||
this.Icon2 = Icon2;
|
||||
this.Card = Card;
|
||||
this.RewardIcon = RewardIcon;
|
||||
this.Count = Count;
|
||||
this.DropReward = DropReward;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static EventScratchCard DeserializeEventScratchCard(JSONNode _json)
|
||||
{
|
||||
return new EventScratchCard(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
public int Quality { get; private set; }
|
||||
public float Weight { get; private set; }
|
||||
public float DeltaLuck { get; private set; }
|
||||
public float LuckParameter { get; private set; }
|
||||
/// <summary>
|
||||
/// 会影响播放的动画<br/>1:普通<br/>2:大奖<br/>9:空牌
|
||||
/// </summary>
|
||||
public int Type { get; private set; }
|
||||
public float CorePercent { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
public string Icon2 { get; private set; }
|
||||
/// <summary>
|
||||
/// 刮开以后的卡
|
||||
/// </summary>
|
||||
public string Card { get; private set; }
|
||||
/// <summary>
|
||||
/// 奖励结算界面的图标
|
||||
/// </summary>
|
||||
public string RewardIcon { get; private set; }
|
||||
/// <summary>
|
||||
/// 收集这么多获得奖励
|
||||
/// </summary>
|
||||
public int Count { get; private set; }
|
||||
/// <summary>
|
||||
/// 读Drop表
|
||||
/// </summary>
|
||||
public int DropReward { get; private set; }
|
||||
|
||||
public const int __ID__ = 355748432;
|
||||
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 + ","
|
||||
+ "Quality:" + Quality + ","
|
||||
+ "Weight:" + Weight + ","
|
||||
+ "DeltaLuck:" + DeltaLuck + ","
|
||||
+ "LuckParameter:" + LuckParameter + ","
|
||||
+ "Type:" + Type + ","
|
||||
+ "CorePercent:" + CorePercent + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "Icon2:" + Icon2 + ","
|
||||
+ "Card:" + Card + ","
|
||||
+ "RewardIcon:" + RewardIcon + ","
|
||||
+ "Count:" + Count + ","
|
||||
+ "DropReward:" + DropReward + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user