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