先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
110 lines
4.0 KiB
C#
110 lines
4.0 KiB
C#
//------------------------------------------------------------------------------
|
||
// <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();
|
||
}
|
||
}
|