备份CatanBuilding瘦身独立工程
This commit is contained in:
109
Assets/Scripts/Tables/DiggingItemList.cs
Normal file
109
Assets/Scripts/Tables/DiggingItemList.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 DiggingItemList : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public DiggingItemList(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["DiggingType"].IsObject) { throw new SerializationException(); } DiggingType = DiggingItemProp.DeserializeDiggingItemProp(_json["DiggingType"]); }
|
||||
{ if(!_json["GridTemplate"].IsString) { throw new SerializationException(); } GridTemplate = _json["GridTemplate"]; }
|
||||
{ if(!_json["ItemGridResource"].IsString) { throw new SerializationException(); } ItemGridResource = _json["ItemGridResource"]; }
|
||||
{ if(!_json["ItemBoxResource"].IsString) { throw new SerializationException(); } ItemBoxResource = _json["ItemBoxResource"]; }
|
||||
{ if(!_json["Fx"].IsString) { throw new SerializationException(); } Fx = _json["Fx"]; }
|
||||
{ if(!_json["ItemFxScale"].IsNumber) { throw new SerializationException(); } ItemFxScale = _json["ItemFxScale"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public DiggingItemList(int ID, DiggingItemProp DiggingType, string GridTemplate, string ItemGridResource, string ItemBoxResource, string Fx, float ItemFxScale )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.DiggingType = DiggingType;
|
||||
this.GridTemplate = GridTemplate;
|
||||
this.ItemGridResource = ItemGridResource;
|
||||
this.ItemBoxResource = ItemBoxResource;
|
||||
this.Fx = Fx;
|
||||
this.ItemFxScale = ItemFxScale;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static DiggingItemList DeserializeDiggingItemList(JSONNode _json)
|
||||
{
|
||||
return new DiggingItemList(_json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主键,唯一标识
|
||||
/// </summary>
|
||||
public int ID { get; private set; }
|
||||
/// <summary>
|
||||
/// Normal:普通道具<br/>Resource:资源道具<br/>RowClear:消除行<br/>ColumnClear:消除列<br/>BombClear:消除圈
|
||||
/// </summary>
|
||||
public DiggingItemProp DiggingType { get; private set; }
|
||||
/// <summary>
|
||||
/// 用于配置占地面积
|
||||
/// </summary>
|
||||
public string GridTemplate { get; private set; }
|
||||
/// <summary>
|
||||
/// 用于配置棋盘上的资源<br/>默认朝向为美术资源朝向
|
||||
/// </summary>
|
||||
public string ItemGridResource { get; private set; }
|
||||
/// <summary>
|
||||
/// 盒子的凹槽处显示的资源<br/>其实也可以通过shader处理
|
||||
/// </summary>
|
||||
public string ItemBoxResource { get; private set; }
|
||||
/// <summary>
|
||||
/// 道具飞到中间时播放的特效
|
||||
/// </summary>
|
||||
public string Fx { get; private set; }
|
||||
/// <summary>
|
||||
/// 对应两个通用特效的缩放<br/>fx_diggingitem_drop<br/>fx_diggingitem_shake
|
||||
/// </summary>
|
||||
public float ItemFxScale { get; private set; }
|
||||
|
||||
public const int __ID__ = -1940133138;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void Resolve(Dictionary<string, object> _tables)
|
||||
{
|
||||
DiggingType?.Resolve(_tables);
|
||||
PostResolve();
|
||||
}
|
||||
|
||||
public void TranslateText(System.Func<string, string, string> translator)
|
||||
{
|
||||
DiggingType?.TranslateText(translator);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "ID:" + ID + ","
|
||||
+ "DiggingType:" + DiggingType + ","
|
||||
+ "GridTemplate:" + GridTemplate + ","
|
||||
+ "ItemGridResource:" + ItemGridResource + ","
|
||||
+ "ItemBoxResource:" + ItemBoxResource + ","
|
||||
+ "Fx:" + Fx + ","
|
||||
+ "ItemFxScale:" + ItemFxScale + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user