196 lines
3.5 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: skill.xlsx
/// </summary>
public partial class ItemMoves : Item, IItem
{
public const string ASSET_NAME = "skill";
/// <summary>
/// 前置技能ID
/// index:1
/// </summary>
public int parent
{
get; private set;
}
/// <summary>
/// 权重 0默认使用卡牌包权重
/// index:2
/// </summary>
public int weight
{
get; private set;
}
/// <summary>
/// 0:增强参数 1:主动技能 4:普攻触发 8:翻滚触发 16:击杀触发
/// index:3
/// </summary>
public int trigger
{
get; private set;
}
/// <summary>
/// 1:技能 2:buff
/// index:4
/// </summary>
public int targetType
{
get; private set;
}
/// <summary>
/// 目标ID
/// index:5
/// </summary>
public int targetId
{
get; private set;
}
/// <summary>
/// 目标参数:(累加计算方式) 5:[1:概率,2:伤害固定值,3:伤害百分比,4:CD固定值,5:CD百分比,6:触发事件减少CD,7:个数,8:持续时间,9:参数1,10:参数2]
/// index:6
/// </summary>
public int[] targetArgs
{
get; private set;
}
/// <summary>
/// 价格
/// index:7
/// </summary>
public int price
{
get; private set;
}
/// <summary>
/// 0:普攻 1召唤 2技能 3属性
/// index:8
/// </summary>
public int label
{
get; private set;
}
/// <summary>
/// 0:普通 1稀有 2传说
/// index:9
/// </summary>
public int quality
{
get; private set;
}
/// <summary>
/// 越大推荐
/// index:10
/// </summary>
public int order
{
get; private set;
}
/// <summary>
/// 解锁任务
/// index:11
/// </summary>
public int unlock
{
get; private set;
}
/// <summary>
/// 技能名
/// index:12
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 技能描述
/// index:13
/// </summary>
public string description
{
get; private set;
}
/// <summary>
/// 图标
/// index:14
/// </summary>
public string[] icon
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
parent = list.GetInt(1);
weight = list.GetInt(2);
trigger = list.GetInt(3);
targetType = list.GetInt(4);
targetId = list.GetInt(5);
targetArgs = list.GetIntArray(6);
price = list.GetInt(7);
label = list.GetInt(8);
quality = list.GetInt(9);
order = list.GetInt(10);
unlock = list.GetInt(11);
name = list.GetString(12);
description = list.GetString(13);
icon = list.GetStringArray(14);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemMoves> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Moves");
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 ItemMoves CreateThis()
{
return new ItemMoves();
}
}
}