106 lines
2.0 KiB
C#
Raw 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: title.xlsx
/// </summary>
public partial class ItemSwordGrade : Item, IItem
{
public const string ASSET_NAME = "title";
/// <summary>
/// 属性
/// index:1
/// </summary>
public int[][] attributes1
{
get; private set;
}
/// <summary>
/// 属性
/// index:2
/// </summary>
public int[][] attributes2
{
get; private set;
}
/// <summary>
/// 属性
/// index:3
/// </summary>
public int[][] attributes3
{
get; private set;
}
/// <summary>
/// 属性
/// index:4
/// </summary>
public int[][] attributes4
{
get; private set;
}
/// <summary>
/// 属性
/// index:5
/// </summary>
public int[][] attributes5
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
attributes1 = list.GetIntArray2(1);
attributes2 = list.GetIntArray2(2);
attributes3 = list.GetIntArray2(3);
attributes4 = list.GetIntArray2(4);
attributes5 = list.GetIntArray2(5);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemSwordGrade> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("SwordGrade");
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 ItemSwordGrade CreateThis()
{
return new ItemSwordGrade();
}
}
}