106 lines
2.1 KiB
C#
106 lines
2.1 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: skill.xlsx
|
||
/// </summary>
|
||
public partial class ItemBuff : Item, IItem
|
||
{
|
||
public const string ASSET_NAME = "skill";
|
||
|
||
/// <summary>
|
||
/// 1.属性固定值 2.属性百分比 3.特殊类型固定值 4:特殊类型百分比
|
||
/// index:1
|
||
/// </summary>
|
||
public int kind
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 参数 4:特殊类型: 1百分比类型 2固定值类型 5:元素类型: 1百分比类型 3元素触发概率 4元素伤害固定加成
|
||
/// index:2
|
||
/// </summary>
|
||
public int[] kindArgs
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 图标
|
||
/// index:3
|
||
/// </summary>
|
||
public string[] icon
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// buff名字
|
||
/// index:4
|
||
/// </summary>
|
||
public string name
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// buff描述
|
||
/// index:5
|
||
/// </summary>
|
||
public string text
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
public void Load(IList<object> list)
|
||
{
|
||
id = list.GetInt(0);
|
||
kind = list.GetInt(1);
|
||
kindArgs = list.GetIntArray(2);
|
||
icon = list.GetStringArray(3);
|
||
name = list.GetString(4);
|
||
text = list.GetString(5);
|
||
}
|
||
|
||
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBuff> result)
|
||
{
|
||
if (result == null)
|
||
{
|
||
return false;
|
||
}
|
||
var list = dictionary.GetList("Buff");
|
||
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 ItemBuff CreateThis()
|
||
{
|
||
return new ItemBuff();
|
||
}
|
||
}
|
||
}
|