先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
113 lines
4.9 KiB
C#
113 lines
4.9 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 EventDrillTunnel : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventDrillTunnel(JSONNode _json)
|
|
{
|
|
{ if(!_json["Tunnel"].IsNumber) { throw new SerializationException(); } Tunnel = _json["Tunnel"]; }
|
|
{ if(!_json["ItemRequired"].IsNumber) { throw new SerializationException(); } ItemRequired = _json["ItemRequired"]; }
|
|
{ if(!_json["Resource"].IsString) { throw new SerializationException(); } Resource = _json["Resource"]; }
|
|
{ if(!_json["TaskList"].IsNumber) { throw new SerializationException(); } TaskList = _json["TaskList"]; }
|
|
{ if(!_json["DropGem"].IsNumber) { throw new SerializationException(); } DropGem = _json["DropGem"]; }
|
|
{ var __json0 = _json["DropCountList"]; if(!__json0.IsArray) { throw new SerializationException(); } DropCountList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DropCountList.Add(__v0); } }
|
|
{ var __json0 = _json["DropWeightList"]; if(!__json0.IsArray) { throw new SerializationException(); } DropWeightList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DropWeightList.Add(__v0); } }
|
|
{ if(!_json["DropItemId"].IsNumber) { throw new SerializationException(); } DropItemId = _json["DropItemId"]; }
|
|
{ var __json0 = _json["FixDropId"]; if(!__json0.IsArray) { throw new SerializationException(); } FixDropId = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FixDropId.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventDrillTunnel(int Tunnel, int ItemRequired, string Resource, int TaskList, int DropGem, System.Collections.Generic.List<int> DropCountList, System.Collections.Generic.List<int> DropWeightList, int DropItemId, System.Collections.Generic.List<int> FixDropId )
|
|
{
|
|
this.Tunnel = Tunnel;
|
|
this.ItemRequired = ItemRequired;
|
|
this.Resource = Resource;
|
|
this.TaskList = TaskList;
|
|
this.DropGem = DropGem;
|
|
this.DropCountList = DropCountList;
|
|
this.DropWeightList = DropWeightList;
|
|
this.DropItemId = DropItemId;
|
|
this.FixDropId = FixDropId;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventDrillTunnel DeserializeEventDrillTunnel(JSONNode _json)
|
|
{
|
|
return new EventDrillTunnel(_json);
|
|
}
|
|
|
|
public int Tunnel { get; private set; }
|
|
public int ItemRequired { get; private set; }
|
|
public string Resource { get; private set; }
|
|
/// <summary>
|
|
/// 读EventDrillReward
|
|
/// </summary>
|
|
public int TaskList { get; private set; }
|
|
/// <summary>
|
|
/// 读Drop表
|
|
/// </summary>
|
|
public int DropGem { get; private set; }
|
|
/// <summary>
|
|
/// 掉落几份奖励
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> DropCountList { get; private set; }
|
|
/// <summary>
|
|
/// 奖励份数权重
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> DropWeightList { get; private set; }
|
|
/// <summary>
|
|
/// 具体奖励id
|
|
/// </summary>
|
|
public int DropItemId { get; private set; }
|
|
/// <summary>
|
|
/// 前X次固定掉落
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> FixDropId { get; private set; }
|
|
|
|
public const int __ID__ = 744544713;
|
|
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 "{ "
|
|
+ "Tunnel:" + Tunnel + ","
|
|
+ "ItemRequired:" + ItemRequired + ","
|
|
+ "Resource:" + Resource + ","
|
|
+ "TaskList:" + TaskList + ","
|
|
+ "DropGem:" + DropGem + ","
|
|
+ "DropCountList:" + Bright.Common.StringUtil.CollectionToString(DropCountList) + ","
|
|
+ "DropWeightList:" + Bright.Common.StringUtil.CollectionToString(DropWeightList) + ","
|
|
+ "DropItemId:" + DropItemId + ","
|
|
+ "FixDropId:" + Bright.Common.StringUtil.CollectionToString(FixDropId) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|