导出配置

main
zhangaotian 2026-01-21 19:03:15 +08:00
parent fbaf50cfce
commit a92e19dcb3
2 changed files with 15 additions and 42 deletions

View File

@ -34,10 +34,9 @@ public sealed partial class DataTrainingLevel : Luban.BeanBase
{ if(!_buf["LevelName"].IsString) { throw new SerializationException(); } LevelName = _buf["LevelName"]; }
{ if(!_buf["LevelPic"].IsString) { throw new SerializationException(); } LevelPic = _buf["LevelPic"]; }
{ if(!_buf["TrainDesc"].IsString) { throw new SerializationException(); } TrainDesc = _buf["TrainDesc"]; }
{ var __json0 = _buf["PlayerSkills"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; PlayerSkills = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PlayerSkills[__index0++] = __v0; } }
}
public DataTrainingLevel(int Id, int LevelID, int TeamID, string TeamRestriction1, string TeamRestriction2, string TeamRestriction3, string[] RestrictionDesc, int BuffID, int[] SpecialRewardID, string BuffDesc, string TrainTitle, string LevelName, string LevelPic, string TrainDesc, int[] PlayerSkills )
public DataTrainingLevel(int Id, int LevelID, int TeamID, string TeamRestriction1, string TeamRestriction2, string TeamRestriction3, string[] RestrictionDesc, int BuffID, int[] SpecialRewardID, string BuffDesc, string TrainTitle, string LevelName, string LevelPic, string TrainDesc )
{
this.Id = Id;
this.LevelID = LevelID;
@ -53,7 +52,6 @@ public sealed partial class DataTrainingLevel : Luban.BeanBase
this.LevelName = LevelName;
this.LevelPic = LevelPic;
this.TrainDesc = TrainDesc;
this.PlayerSkills = PlayerSkills;
}
@ -115,10 +113,6 @@ public sealed partial class DataTrainingLevel : Luban.BeanBase
/// 关卡描述
/// </summary>
public string TrainDesc { get; private set; }
/// <summary>
/// 可携带指挥官技能
/// </summary>
public int[] PlayerSkills { get; private set; }
public const int __ID__ = -920937710;
public override int GetTypeId() => __ID__;
@ -144,7 +138,6 @@ public sealed partial class DataTrainingLevel : Luban.BeanBase
+ "LevelName:" + LevelName + ","
+ "LevelPic:" + LevelPic + ","
+ "TrainDesc:" + TrainDesc + ","
+ "PlayerSkills:" + Luban.StringUtil.CollectionToString(PlayerSkills) + ","
+ "}";
}
}

View File

@ -16,8 +16,7 @@
"TrainTitle": "TrainTitle_701",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_701",
"PlayerSkills": []
"TrainDesc": "TrainDesc_701"
},
{
"Id": 702,
@ -36,10 +35,7 @@
"TrainTitle": "TrainTitle_702",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_702",
"PlayerSkills": [
911
]
"TrainDesc": "TrainDesc_702"
},
{
"Id": 703,
@ -58,10 +54,7 @@
"TrainTitle": "TrainTitle_703",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_703",
"PlayerSkills": [
911
]
"TrainDesc": "TrainDesc_703"
},
{
"Id": 704,
@ -80,8 +73,7 @@
"TrainTitle": "TrainTitle_704",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_704",
"PlayerSkills": []
"TrainDesc": "TrainDesc_704"
},
{
"Id": 705,
@ -100,8 +92,7 @@
"TrainTitle": "TrainTitle_705",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_705",
"PlayerSkills": []
"TrainDesc": "TrainDesc_705"
},
{
"Id": 706,
@ -120,8 +111,7 @@
"TrainTitle": "TrainTitle_706",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_706",
"PlayerSkills": []
"TrainDesc": "TrainDesc_706"
},
{
"Id": 707,
@ -140,8 +130,7 @@
"TrainTitle": "TrainTitle_707",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_707",
"PlayerSkills": []
"TrainDesc": "TrainDesc_707"
},
{
"Id": 708,
@ -160,8 +149,7 @@
"TrainTitle": "TrainTitle_708",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_708",
"PlayerSkills": []
"TrainDesc": "TrainDesc_708"
},
{
"Id": 709,
@ -180,8 +168,7 @@
"TrainTitle": "TrainTitle_709",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_709",
"PlayerSkills": []
"TrainDesc": "TrainDesc_709"
},
{
"Id": 710,
@ -200,8 +187,7 @@
"TrainTitle": "TrainTitle_710",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_710",
"PlayerSkills": []
"TrainDesc": "TrainDesc_710"
},
{
"Id": 711,
@ -220,8 +206,7 @@
"TrainTitle": "TrainTitle_711",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_711",
"PlayerSkills": []
"TrainDesc": "TrainDesc_711"
},
{
"Id": 712,
@ -240,8 +225,7 @@
"TrainTitle": "TrainTitle_712",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_712",
"PlayerSkills": []
"TrainDesc": "TrainDesc_712"
},
{
"Id": 713,
@ -260,8 +244,7 @@
"TrainTitle": "TrainTitle_713",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_713",
"PlayerSkills": []
"TrainDesc": "TrainDesc_713"
},
{
"Id": 714,
@ -280,9 +263,6 @@
"TrainTitle": "TrainTitle_714",
"LevelName": "",
"LevelPic": "",
"TrainDesc": "TrainDesc_714",
"PlayerSkills": [
915
]
"TrainDesc": "TrainDesc_714"
}
]