106 lines
2.0 KiB
C#
106 lines
2.0 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>
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
namespace G
|
||
|
{
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using F;
|
||
|
using F.Item;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Generated from: title.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemSwordLevel : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "title";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 通关奖励
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public int[] completedRewards
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 每分钟产出类型与数量
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public int[] stationRewards
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 产出间隔(分钟)
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public int rewardInterval
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 收益上限时间
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int rewardTotal
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 战力压制
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int requirementCV
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
completedRewards = list.GetIntArray(1);
|
||
|
stationRewards = list.GetIntArray(2);
|
||
|
rewardInterval = list.GetInt(3);
|
||
|
rewardTotal = list.GetInt(4);
|
||
|
requirementCV = list.GetInt(5);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemSwordLevel> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("SwordLevel");
|
||
|
if (list == null || list.Count == 0)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
int i = 0;
|
||
|
for (int c = list.Count; i < c; i++)
|
||
|
{
|
||
|
var item = CreateThis();
|
||
|
item.Load((IList<object>)list[i]);
|
||
|
result.Add(item);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private static ItemSwordLevel CreateThis()
|
||
|
{
|
||
|
return new ItemSwordLevel();
|
||
|
}
|
||
|
}
|
||
|
}
|