186 lines
3.1 KiB
C#
186 lines
3.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: cha.xlsx
|
|
/// </summary>
|
|
public partial class ItemChaSkin : Item, IItem
|
|
{
|
|
public const string ASSET_NAME = "cha";
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:1
|
|
/// </summary>
|
|
public string name
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 皮肤ICON
|
|
/// index:2
|
|
/// </summary>
|
|
public string[] icon
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:3
|
|
/// </summary>
|
|
public string asset3d
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// [单手、双持、斧]
|
|
/// index:4
|
|
/// </summary>
|
|
public string[] weapon3d
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:5
|
|
/// </summary>
|
|
public string[][] weaponIcons
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 解锁任务
|
|
/// index:6
|
|
/// </summary>
|
|
public int unlock
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 衣服兑换价格
|
|
/// index:7
|
|
/// </summary>
|
|
public int[] price
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 衣服元宝价格
|
|
/// index:8
|
|
/// </summary>
|
|
public int[] buyPrice
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 武器兑换价格
|
|
/// index:9
|
|
/// </summary>
|
|
public int[] weaponPrice
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 武器元宝价格
|
|
/// index:10
|
|
/// </summary>
|
|
public int[] weaponBuyPrice
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:11
|
|
/// </summary>
|
|
public int quality
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:12
|
|
/// </summary>
|
|
public string description
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:13
|
|
/// </summary>
|
|
public int combatValue
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
public void Load(IList<object> list)
|
|
{
|
|
id = list.GetInt(0);
|
|
name = list.GetString(1);
|
|
icon = list.GetStringArray(2);
|
|
asset3d = list.GetString(3);
|
|
weapon3d = list.GetStringArray(4);
|
|
weaponIcons = list.GetStringArray2(5);
|
|
unlock = list.GetInt(6);
|
|
price = list.GetIntArray(7);
|
|
buyPrice = list.GetIntArray(8);
|
|
weaponPrice = list.GetIntArray(9);
|
|
weaponBuyPrice = list.GetIntArray(10);
|
|
quality = list.GetInt(11);
|
|
description = list.GetString(12);
|
|
combatValue = list.GetInt(13);
|
|
}
|
|
|
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemChaSkin> result)
|
|
{
|
|
if (result == null)
|
|
{
|
|
return false;
|
|
}
|
|
var list = dictionary.GetList("ChaSkin");
|
|
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 ItemChaSkin CreateThis()
|
|
{
|
|
return new ItemChaSkin();
|
|
}
|
|
}
|
|
}
|