126 lines
2.2 KiB
C#
126 lines
2.2 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 ItemSword : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "title";
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public string name
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 属性
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public int[][] attributes
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 升级消耗
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public int[] upgradeCost
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 等级上限
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int gradeMax
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 基础战力
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int[] combatValue
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 解锁
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public int unlock
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public string description
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
name = list.GetString(1);
|
||
|
attributes = list.GetIntArray2(2);
|
||
|
upgradeCost = list.GetIntArray(3);
|
||
|
gradeMax = list.GetInt(4);
|
||
|
combatValue = list.GetIntArray(5);
|
||
|
unlock = list.GetInt(6);
|
||
|
description = list.GetString(7);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemSword> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("Sword");
|
||
|
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 ItemSword CreateThis()
|
||
|
{
|
||
|
return new ItemSword();
|
||
|
}
|
||
|
}
|
||
|
}
|