//------------------------------------------------------------------------------ // // 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 ItemSuit : Item, IItem { public const string ASSET_NAME = "item"; /// /// 套装名字 /// index:1 /// public string name { get; private set; } /// /// 套装描述 /// index:2 /// public string description { get; private set; } /// /// 2件属性 /// index:3 /// public int[] attributes2 { get; private set; } /// /// 4件属性 /// index:4 /// public int[] attributes4 { get; private set; } /// /// 6件属性 /// index:5 /// public int[] attributes6 { get; private set; } /// /// /// index:6 /// public string[] icon { get; private set; } /// /// /// index:7 /// public string effect { get; private set; } /// /// 消耗 /// index:8 /// public int[] cost { get; private set; } /// /// /// index:9 /// public string[] gradeName { get; private set; } /// /// 战力 /// index:10 /// public int combatValue { get; private set; } public void Load(IList list) { id = list.GetInt(0); name = list.GetString(1); description = list.GetString(2); attributes2 = list.GetIntArray(3); attributes4 = list.GetIntArray(4); attributes6 = list.GetIntArray(5); icon = list.GetStringArray(6); effect = list.GetString(7); cost = list.GetIntArray(8); gradeName = list.GetStringArray(9); combatValue = list.GetInt(10); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Suit"); 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 ItemSuit CreateThis() { return new ItemSuit(); } } }