//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace G { using System.Collections; using System.Collections.Generic; using F; using F.Item; /// /// Generated from: item.xlsx /// public partial class ItemProp : Item, IItem { public const string ASSET_NAME = "item"; /// /// 类型 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 /// public int type { get; private set; } /// /// 使用等级 /// index:2 /// public int level { get; private set; } /// /// 品质 1:白 2:绿 3:蓝 4:紫 5:橙 6:红 /// index:3 /// public int quality { get; private set; } /// /// 图标 /// index:4 /// public int iconId { get; private set; } /// /// 道具名 /// index:5 /// public string name { get; private set; } /// /// 道具描述Id /// index:6 /// public int textId { get; private set; } /// /// 购买价格 /// index:7 /// public int[] buyPrice { get; private set; } /// /// 出售价格 /// index:8 /// public int[] sellPrice { get; private set; } /// /// 用途 /// index:9 /// public int[] use { get; private set; } /// /// 获得途径 /// index:10 /// public int access { get; private set; } public void Load(IList 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 dictionary, List 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)list[i]); result.Add(item); } return true; } private static ItemProp CreateThis() { return new ItemProp(); } } }