//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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); } /// /// 主键,唯一标识 /// public int ID { get; private set; } /// /// Normal:普通道具
Resource:资源道具
RowClear:消除行
ColumnClear:消除列
BombClear:消除圈 ///
public DiggingItemProp DiggingType { get; private set; } /// /// 用于配置占地面积 /// public string GridTemplate { get; private set; } /// /// 用于配置棋盘上的资源
默认朝向为美术资源朝向 ///
public string ItemGridResource { get; private set; } /// /// 盒子的凹槽处显示的资源
其实也可以通过shader处理 ///
public string ItemBoxResource { get; private set; } /// /// 道具飞到中间时播放的特效 /// public string Fx { get; private set; } /// /// 对应两个通用特效的缩放
fx_diggingitem_drop
fx_diggingitem_shake ///
public float ItemFxScale { get; private set; } public const int __ID__ = -1940133138; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { DiggingType?.Resolve(_tables); PostResolve(); } public void TranslateText(System.Func 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(); } }