2025-05-18 01:04:31 +08:00

136 lines
2.4 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: home.xlsx
/// </summary>
public partial class ItemBeautySkill : Item, IItem
{
public const string ASSET_NAME = "home";
/// <summary>
/// 技能解锁条件
/// index:1
/// </summary>
public int[] unlock
{
get; private set;
}
/// <summary>
///
/// index:2
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 技能效果
/// index:3
/// </summary>
public string effect
{
get; private set;
}
/// <summary>
/// 效果提升数值
/// index:4
/// </summary>
public string effectUp
{
get; private set;
}
/// <summary>
/// 效果提升经验
/// index:5
/// </summary>
public int[] effectUpExp
{
get; private set;
}
/// <summary>
/// 初始值
/// index:6
/// </summary>
public int[] addValue
{
get; private set;
}
/// <summary>
/// 初始消耗
/// index:7
/// </summary>
public int[] addCost
{
get; private set;
}
/// <summary>
/// 等级上限
/// index:8
/// </summary>
public int maxLevel
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
unlock = list.GetIntArray(1);
name = list.GetString(2);
effect = list.GetString(3);
effectUp = list.GetString(4);
effectUpExp = list.GetIntArray(5);
addValue = list.GetIntArray(6);
addCost = list.GetIntArray(7);
maxLevel = list.GetInt(8);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBeautySkill> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("BeautySkill");
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 ItemBeautySkill CreateThis()
{
return new ItemBeautySkill();
}
}
}