156 lines
2.6 KiB
C#
156 lines
2.6 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: item.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemSuit : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "item";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 套装名字
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public string name
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 套装描述
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public string description
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 2件属性
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public int[] attributes2
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 4件属性
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int[] attributes4
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 6件属性
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int[] attributes6
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public string[] icon
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public string effect
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 消耗
|
||
|
/// index:8
|
||
|
/// </summary>
|
||
|
public int[] cost
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:9
|
||
|
/// </summary>
|
||
|
public string[] gradeName
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 战力
|
||
|
/// index:10
|
||
|
/// </summary>
|
||
|
public int combatValue
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
name = list.GetString(1);
|
||
|
description = list.GetString(2);
|
||
|
attributes2 = list.GetIntArray(3);
|
||
|
attributes4 = list.GetIntArray(4);
|
||
|
attributes6 = list.GetIntArray(5);
|
||
|
icon = list.GetStringArray(6);
|
||
|
effect = list.GetString(7);
|
||
|
cost = list.GetIntArray(8);
|
||
|
gradeName = list.GetStringArray(9);
|
||
|
combatValue = list.GetInt(10);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemSuit> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("Suit");
|
||
|
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 ItemSuit CreateThis()
|
||
|
{
|
||
|
return new ItemSuit();
|
||
|
}
|
||
|
}
|
||
|
}
|