Files
MinFt/Client/Assets/Scripts/Tables/EventChallengeMain.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

120 lines
6.3 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 EventChallengeMain : Bright.Config.BeanBase
{
public JSONNode json;
public EventChallengeMain(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["RankTier"].IsNumber) { throw new SerializationException(); } RankTier = _json["RankTier"]; }
{ if(!_json["RobotNumber"].IsNumber) { throw new SerializationException(); } RobotNumber = _json["RobotNumber"]; }
{ var __json0 = _json["EliminateScore"]; if(!__json0.IsArray) { throw new SerializationException(); } EliminateScore = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } EliminateScore.Add(__v0); } }
{ var __json0 = _json["StageReward"]; if(!__json0.IsArray) { throw new SerializationException(); } StageReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageReward.Add(__v0); } }
{ if(!_json["WinnerReward"].IsNumber) { throw new SerializationException(); } WinnerReward = _json["WinnerReward"]; }
{ var __json0 = _json["FinalPlayer"]; if(!__json0.IsArray) { throw new SerializationException(); } FinalPlayer = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FinalPlayer.Add(__v0); } }
{ var __json0 = _json["FinalWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } FinalWeight = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FinalWeight.Add(__v0); } }
{ var __json0 = _json["FinalReward"]; if(!__json0.IsArray) { throw new SerializationException(); } FinalReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FinalReward.Add(__v0); } }
{ var __json0 = _json["RobotAccountList"]; if(!__json0.IsArray) { throw new SerializationException(); } RobotAccountList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RobotAccountList.Add(__v0); } }
json = _json;
PostInit();
}
public EventChallengeMain(int ID, int RankTier, int RobotNumber, System.Collections.Generic.List<int> EliminateScore, System.Collections.Generic.List<int> StageReward, int WinnerReward, System.Collections.Generic.List<int> FinalPlayer, System.Collections.Generic.List<int> FinalWeight, System.Collections.Generic.List<int> FinalReward, System.Collections.Generic.List<int> RobotAccountList )
{
this.ID = ID;
this.RankTier = RankTier;
this.RobotNumber = RobotNumber;
this.EliminateScore = EliminateScore;
this.StageReward = StageReward;
this.WinnerReward = WinnerReward;
this.FinalPlayer = FinalPlayer;
this.FinalWeight = FinalWeight;
this.FinalReward = FinalReward;
this.RobotAccountList = RobotAccountList;
PostInit();
}
public static EventChallengeMain DeserializeEventChallengeMain(JSONNode _json)
{
return new EventChallengeMain(_json);
}
public int ID { get; private set; }
/// <summary>
/// 从高到低
/// </summary>
public int RankTier { get; private set; }
public int RobotNumber { get; private set; }
public System.Collections.Generic.List<int> EliminateScore { get; private set; }
/// <summary>
/// 填drop_id
/// </summary>
public System.Collections.Generic.List<int> StageReward { get; private set; }
/// <summary>
/// 填drop_id
/// </summary>
public int WinnerReward { get; private set; }
/// <summary>
/// 瓜分大奖的人数
/// </summary>
public System.Collections.Generic.List<int> FinalPlayer { get; private set; }
/// <summary>
/// 随机人数的权重
/// </summary>
public System.Collections.Generic.List<int> FinalWeight { get; private set; }
/// <summary>
/// 实际获得的奖励
/// </summary>
public System.Collections.Generic.List<int> FinalReward { get; private set; }
/// <summary>
/// 从Robot表中随机出这么多机器人
/// </summary>
public System.Collections.Generic.List<int> RobotAccountList { get; private set; }
public const int __ID__ = 472191074;
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 + ","
+ "RankTier:" + RankTier + ","
+ "RobotNumber:" + RobotNumber + ","
+ "EliminateScore:" + Bright.Common.StringUtil.CollectionToString(EliminateScore) + ","
+ "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + ","
+ "WinnerReward:" + WinnerReward + ","
+ "FinalPlayer:" + Bright.Common.StringUtil.CollectionToString(FinalPlayer) + ","
+ "FinalWeight:" + Bright.Common.StringUtil.CollectionToString(FinalWeight) + ","
+ "FinalReward:" + Bright.Common.StringUtil.CollectionToString(FinalReward) + ","
+ "RobotAccountList:" + Bright.Common.StringUtil.CollectionToString(RobotAccountList) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}