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

156 lines
2.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//------------------------------------------------------------------------------
// <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: item.xlsx
/// </summary>
public partial class ItemProp : Item, IItem
{
public const string ASSET_NAME = "item";
/// <summary>
/// 类型 1:货币(1~100) 2道具(101~599) 3武器(600~5000) 4装备5001~1000 5技能类型(150~200 6宝石 7战宠(12000) 8红颜问候 9红颜送礼 10:皮肤(2000) 11:诗词类型
/// index:1
/// </summary>
public int type
{
get; private set;
}
/// <summary>
/// 使用等级
/// index:2
/// </summary>
public int level
{
get; private set;
}
/// <summary>
/// 品质 1白 2绿 3蓝 4紫 5橙 6
/// index:3
/// </summary>
public int quality
{
get; private set;
}
/// <summary>
/// 图标
/// index:4
/// </summary>
public int iconId
{
get; private set;
}
/// <summary>
/// 道具名
/// index:5
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 道具描述Id
/// index:6
/// </summary>
public int textId
{
get; private set;
}
/// <summary>
/// 购买价格
/// index:7
/// </summary>
public int[] buyPrice
{
get; private set;
}
/// <summary>
/// 出售价格
/// index:8
/// </summary>
public int[] sellPrice
{
get; private set;
}
/// <summary>
/// 用途
/// index:9
/// </summary>
public int[] use
{
get; private set;
}
/// <summary>
/// 获得途径
/// index:10
/// </summary>
public int access
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
type = list.GetInt(1);
level = list.GetInt(2);
quality = list.GetInt(3);
iconId = list.GetInt(4);
name = list.GetString(5);
textId = list.GetInt(6);
buyPrice = list.GetIntArray(7);
sellPrice = list.GetIntArray(8);
use = list.GetIntArray(9);
access = list.GetInt(10);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemProp> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Prop");
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 ItemProp CreateThis()
{
return new ItemProp();
}
}
}