106 lines
2.0 KiB
C#
Raw Permalink Normal View History

2025-05-18 01:04:31 +08:00
//------------------------------------------------------------------------------
// <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: cha.xlsx
/// </summary>
public partial class ItemChaLevel : Item, IItem
{
public const string ASSET_NAME = "cha";
/// <summary>
/// 经验
/// index:1
/// </summary>
public int exp
{
get; private set;
}
/// <summary>
/// 成长属性
/// index:2
/// </summary>
public int[][] growthAttributes
{
get; private set;
}
/// <summary>
/// 无尽属性
/// index:3
/// </summary>
public int[][] endlessAttributes
{
get; private set;
}
/// <summary>
/// 装备强化提升属性
/// index:4
/// </summary>
public int[][] equipmentUpgrade
{
get; private set;
}
/// <summary>
/// [id,num]
/// index:5
/// </summary>
public int[] equipmentUpgradeCost
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
exp = list.GetInt(1);
growthAttributes = list.GetIntArray2(2);
endlessAttributes = list.GetIntArray2(3);
equipmentUpgrade = list.GetIntArray2(4);
equipmentUpgradeCost = list.GetIntArray(5);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemChaLevel> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("ChaLevel");
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 ItemChaLevel CreateThis()
{
return new ItemChaLevel();
}
}
}