156 lines
2.8 KiB
C#
156 lines
2.8 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: 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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|