先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
154 lines
8.8 KiB
C#
154 lines
8.8 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 EventPotionMain : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPotionMain(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["Prefab"].IsString) { throw new SerializationException(); } Prefab = _json["Prefab"]; }
|
|
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
|
|
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
|
|
{ if(!_json["RewardPanel"].IsString) { throw new SerializationException(); } RewardPanel = _json["RewardPanel"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
{ if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
|
|
{ var __json0 = _json["ItemResource"]; if(!__json0.IsArray) { throw new SerializationException(); } ItemResource = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } ItemResource.Add(__v0); } }
|
|
{ var __json0 = _json["PaintResource"]; if(!__json0.IsArray) { throw new SerializationException(); } PaintResource = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } PaintResource.Add(__v0); } }
|
|
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
|
|
{ var __json0 = _json["ResourceID"]; if(!__json0.IsArray) { throw new SerializationException(); } ResourceID = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ResourceID.Add(__v0); } }
|
|
{ var __json0 = _json["BlockResourceID"]; if(!__json0.IsArray) { throw new SerializationException(); } BlockResourceID = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BlockResourceID.Add(__v0); } }
|
|
{ var __json0 = _json["StageList1"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList1 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList1.Add(__v0); } }
|
|
{ var __json0 = _json["StageList2"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList2 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList2.Add(__v0); } }
|
|
{ var __json0 = _json["ExpStageList1"]; if(!__json0.IsArray) { throw new SerializationException(); } ExpStageList1 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExpStageList1.Add(__v0); } }
|
|
{ var __json0 = _json["ExpStageList2"]; if(!__json0.IsArray) { throw new SerializationException(); } ExpStageList2 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExpStageList2.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPotionMain(int ID, string Prefab, string UIPanel, string InfoPanel, string RewardPanel, string Icon, int PackId, int SweepPackId, System.Collections.Generic.List<string> ItemResource, System.Collections.Generic.List<string> PaintResource, string Atlas, System.Collections.Generic.List<int> ResourceID, System.Collections.Generic.List<int> BlockResourceID, System.Collections.Generic.List<int> StageList1, System.Collections.Generic.List<int> StageList2, System.Collections.Generic.List<int> ExpStageList1, System.Collections.Generic.List<int> ExpStageList2 )
|
|
{
|
|
this.ID = ID;
|
|
this.Prefab = Prefab;
|
|
this.UIPanel = UIPanel;
|
|
this.InfoPanel = InfoPanel;
|
|
this.RewardPanel = RewardPanel;
|
|
this.Icon = Icon;
|
|
this.PackId = PackId;
|
|
this.SweepPackId = SweepPackId;
|
|
this.ItemResource = ItemResource;
|
|
this.PaintResource = PaintResource;
|
|
this.Atlas = Atlas;
|
|
this.ResourceID = ResourceID;
|
|
this.BlockResourceID = BlockResourceID;
|
|
this.StageList1 = StageList1;
|
|
this.StageList2 = StageList2;
|
|
this.ExpStageList1 = ExpStageList1;
|
|
this.ExpStageList2 = ExpStageList2;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPotionMain DeserializeEventPotionMain(JSONNode _json)
|
|
{
|
|
return new EventPotionMain(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
public string Prefab { get; private set; }
|
|
public string UIPanel { get; private set; }
|
|
public string InfoPanel { get; private set; }
|
|
public string RewardPanel { get; private set; }
|
|
public string Icon { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int SweepPackId { get; private set; }
|
|
/// <summary>
|
|
/// Spine的颜色
|
|
/// </summary>
|
|
public System.Collections.Generic.List<string> ItemResource { get; private set; }
|
|
public System.Collections.Generic.List<string> PaintResource { get; private set; }
|
|
public string Atlas { get; private set; }
|
|
/// <summary>
|
|
/// 一直这么配吧,忘了干啥的
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> ResourceID { get; private set; }
|
|
/// <summary>
|
|
/// 读EventPotionBlock
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> BlockResourceID { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventPotionStage表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> StageList1 { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventPotionStage表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> StageList2 { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventPotionStage表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> ExpStageList1 { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventPotionStage表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> ExpStageList2 { get; private set; }
|
|
|
|
public const int __ID__ = 1555615750;
|
|
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 + ","
|
|
+ "Prefab:" + Prefab + ","
|
|
+ "UIPanel:" + UIPanel + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "RewardPanel:" + RewardPanel + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "SweepPackId:" + SweepPackId + ","
|
|
+ "ItemResource:" + Bright.Common.StringUtil.CollectionToString(ItemResource) + ","
|
|
+ "PaintResource:" + Bright.Common.StringUtil.CollectionToString(PaintResource) + ","
|
|
+ "Atlas:" + Atlas + ","
|
|
+ "ResourceID:" + Bright.Common.StringUtil.CollectionToString(ResourceID) + ","
|
|
+ "BlockResourceID:" + Bright.Common.StringUtil.CollectionToString(BlockResourceID) + ","
|
|
+ "StageList1:" + Bright.Common.StringUtil.CollectionToString(StageList1) + ","
|
|
+ "StageList2:" + Bright.Common.StringUtil.CollectionToString(StageList2) + ","
|
|
+ "ExpStageList1:" + Bright.Common.StringUtil.CollectionToString(ExpStageList1) + ","
|
|
+ "ExpStageList2:" + Bright.Common.StringUtil.CollectionToString(ExpStageList2) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|