备份CatanBuilding瘦身独立工程
This commit is contained in:
81
Assets/Scripts/Tables/EventGatherCoreReward.cs
Normal file
81
Assets/Scripts/Tables/EventGatherCoreReward.cs
Normal file
@@ -0,0 +1,81 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 EventGatherCoreReward : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public EventGatherCoreReward(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["Item"].IsNumber) { throw new SerializationException(); } Item = _json["Item"]; }
|
||||
{ if(!_json["Number"].IsNumber) { throw new SerializationException(); } Number = _json["Number"]; }
|
||||
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
|
||||
{ if(!_json["IsSpecial"].IsNumber) { throw new SerializationException(); } IsSpecial = _json["IsSpecial"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public EventGatherCoreReward(int ID, int Item, int Number, int Weight, int IsSpecial )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Item = Item;
|
||||
this.Number = Number;
|
||||
this.Weight = Weight;
|
||||
this.IsSpecial = IsSpecial;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static EventGatherCoreReward DeserializeEventGatherCoreReward(JSONNode _json)
|
||||
{
|
||||
return new EventGatherCoreReward(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// (-1)代表核心收集道具
|
||||
/// </summary>
|
||||
public int Item { get; private set; }
|
||||
public int Number { get; private set; }
|
||||
public int Weight { get; private set; }
|
||||
public int IsSpecial { get; private set; }
|
||||
|
||||
public const int __ID__ = 1839679139;
|
||||
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 + ","
|
||||
+ "Item:" + Item + ","
|
||||
+ "Number:" + Number + ","
|
||||
+ "Weight:" + Weight + ","
|
||||
+ "IsSpecial:" + IsSpecial + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user