更新配置

main
Yurui 2025-05-20 12:42:45 +08:00
parent d89b33a3d6
commit e202dac5f8
2 changed files with 22 additions and 2 deletions

View File

@ -17,10 +17,14 @@ public sealed partial class DataActivityDoubleReward : Luban.BeanBase
{
public DataActivityDoubleReward(JSONNode _buf)
{
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
{ var __json0 = _buf["LevelType"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; LevelType = new LevelCfg.E_LevelType[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { LevelCfg.E_LevelType __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = (LevelCfg.E_LevelType)__e0.AsInt; } LevelType[__index0++] = __v0; } }
}
public DataActivityDoubleReward()
public DataActivityDoubleReward(int Id, LevelCfg.E_LevelType[] LevelType )
{
this.Id = Id;
this.LevelType = LevelType;
}
@ -29,6 +33,14 @@ public sealed partial class DataActivityDoubleReward : Luban.BeanBase
return new ActorCfg.DataActivityDoubleReward(_buf);
}
/// <summary>
/// ID
/// </summary>
public int Id { get; private set; }
/// <summary>
/// 关卡类型
/// </summary>
public LevelCfg.E_LevelType[] LevelType { get; private set; }
public const int __ID__ = -1689384776;
public override int GetTypeId() => __ID__;
@ -40,6 +52,8 @@ public sealed partial class DataActivityDoubleReward : Luban.BeanBase
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "LevelType:" + Luban.StringUtil.CollectionToString(LevelType) + ","
+ "}";
}
}

View File

@ -1,3 +1,9 @@
[
{}
{
"Id": 1,
"LevelType": [
0,
1
]
}
]