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

196 lines
3.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: home.xlsx
/// </summary>
public partial class ItemBeautySkin : Item, IItem
{
public const string ASSET_NAME = "home";
/// <summary>
/// 动态皮肤资源名
/// index:1
/// </summary>
public string asset
{
get; private set;
}
/// <summary>
/// 静态皮肤
/// index:2
/// </summary>
public string picture
{
get; private set;
}
/// <summary>
///
/// index:3
/// </summary>
public string sound
{
get; private set;
}
/// <summary>
///
/// index:4
/// </summary>
public string[] icon
{
get; private set;
}
/// <summary>
///
/// index:5
/// </summary>
public string name
{
get; private set;
}
/// <summary>
///
/// index:6
/// </summary>
public int quality
{
get; private set;
}
/// <summary>
///
/// index:7
/// </summary>
public string label
{
get; private set;
}
/// <summary>
/// 皮肤效果
/// index:8
/// </summary>
public string effect
{
get; private set;
}
/// <summary>
/// 获取途径
/// index:9
/// </summary>
public string getWay
{
get; private set;
}
/// <summary>
/// 皮肤解锁条件
/// index:10
/// </summary>
public int[] cost
{
get; private set;
}
/// <summary>
/// 初始值
/// index:11
/// </summary>
public int[] addValue
{
get; private set;
}
/// <summary>
/// 升级消耗
/// index:12
/// </summary>
public int[] addCost
{
get; private set;
}
/// <summary>
/// 等级上限
/// index:13
/// </summary>
public int maxLevel
{
get; private set;
}
/// <summary>
///
/// index:14
/// </summary>
public string talk
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
asset = list.GetString(1);
picture = list.GetString(2);
sound = list.GetString(3);
icon = list.GetStringArray(4);
name = list.GetString(5);
quality = list.GetInt(6);
label = list.GetString(7);
effect = list.GetString(8);
getWay = list.GetString(9);
cost = list.GetIntArray(10);
addValue = list.GetIntArray(11);
addCost = list.GetIntArray(12);
maxLevel = list.GetInt(13);
talk = list.GetString(14);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBeautySkin> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("BeautySkin");
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 ItemBeautySkin CreateThis()
{
return new ItemBeautySkin();
}
}
}