备份CatanBuilding瘦身独立工程
This commit is contained in:
75
Assets/Scripts/Tables/Resource.cs
Normal file
75
Assets/Scripts/Tables/Resource.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 资源道具
|
||||
/// </summary>
|
||||
public sealed partial class Resource : DiggingItemProp
|
||||
{
|
||||
public Resource(JSONNode _json) : base(_json)
|
||||
{
|
||||
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
|
||||
{ if(!_json["Param"].IsNumber) { throw new SerializationException(); } Param = _json["Param"]; }
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public Resource(int ItemID, int Param ) : base()
|
||||
{
|
||||
this.ItemID = ItemID;
|
||||
this.Param = Param;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static Resource DeserializeResource(JSONNode _json)
|
||||
{
|
||||
return new Resource(_json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物品道具编号
|
||||
/// </summary>
|
||||
public int ItemID { get; private set; }
|
||||
/// <summary>
|
||||
/// 物品道具掉落数量
|
||||
/// </summary>
|
||||
public int Param { get; private set; }
|
||||
|
||||
public const int __ID__ = -276420562;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void Resolve(Dictionary<string, object> _tables)
|
||||
{
|
||||
base.Resolve(_tables);
|
||||
PostResolve();
|
||||
}
|
||||
|
||||
public override void TranslateText(System.Func<string, string, string> translator)
|
||||
{
|
||||
base.TranslateText(translator);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "ItemID:" + ItemID + ","
|
||||
+ "Param:" + Param + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user