//------------------------------------------------------------------------------ // // 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: cha.xlsx /// public partial class ItemCha : Item, IItem { public const string ASSET_NAME = "cha"; /// /// 初始武器ID /// index:1 /// public int weapon { get; private set; } /// /// 初始金币 /// index:2 /// public int money { get; private set; } /// /// 初始钻石 /// index:3 /// public int gem { get; private set; } /// /// 初始头像 /// index:4 /// public string[] head { get; private set; } /// /// 初始体力 /// index:5 /// public int energy { get; private set; } /// /// 初始属性 /// index:6 /// public int[][] initAttributes { get; private set; } /// /// 无尽属性 /// index:7 /// public int[][] endlessAttributes { get; private set; } public void Load(IList list) { id = list.GetInt(0); weapon = list.GetInt(1); money = list.GetInt(2); gem = list.GetInt(3); head = list.GetStringArray(4); energy = list.GetInt(5); initAttributes = list.GetIntArray2(6); endlessAttributes = list.GetIntArray2(7); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Cha"); 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 ItemCha CreateThis() { return new ItemCha(); } } }