//------------------------------------------------------------------------------ // // 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: pet.xlsx /// public partial class ItemPet : Item, IItem { public const string ASSET_NAME = "pet"; /// /// 资源名 /// index:1 /// public string assets { get; private set; } /// /// 角色名 /// index:2 /// public string name { get; private set; } /// /// 头像名 /// index:3 /// public string[] icon { get; private set; } /// /// 伤害(%) /// index:4 /// public int damage { get; private set; } /// /// 移动(ms) /// index:5 /// public int speed { get; private set; } /// /// 子弹 /// index:6 /// public int bullet { get; private set; } /// /// 子弹数量 /// index:7 /// public int bulletNumber { get; private set; } /// /// 攻击间隔(ms) /// index:8 /// public int bulletSpeed { get; private set; } /// /// 子弹类型 /// index:9 /// public int bulletLayer { get; private set; } /// /// 特殊buff /// index:10 /// public int splash { get; private set; } /// /// /// index:11 /// public int combatValue { get; private set; } /// /// 主动技能 /// index:12 /// public int[] mainSkills { get; private set; } /// /// 被动技能 /// index:13 /// public int[] skills { get; private set; } /// /// 获得途径 /// index:14 /// public int access { get; private set; } /// /// 解锁任务 /// index:15 /// public int unlock { get; private set; } /// /// 激活货币 /// index:16 /// public int[] active { get; private set; } /// /// 标签 /// index:17 /// public int label { get; private set; } /// /// 属性 /// index:18 /// public int[][] attributes { get; private set; } /// /// 地点 /// index:19 /// public string location { get; private set; } /// /// 静态皮肤 /// index:20 /// public string[] skins { get; private set; } /// /// /// index:21 /// public int quality { get; private set; } /// /// /// index:22 /// public string description { get; private set; } public void Load(IList list) { id = list.GetInt(0); assets = list.GetString(1); name = list.GetString(2); icon = list.GetStringArray(3); damage = list.GetInt(4); speed = list.GetInt(5); bullet = list.GetInt(6); bulletNumber = list.GetInt(7); bulletSpeed = list.GetInt(8); bulletLayer = list.GetInt(9); splash = list.GetInt(10); combatValue = list.GetInt(11); mainSkills = list.GetIntArray(12); skills = list.GetIntArray(13); access = list.GetInt(14); unlock = list.GetInt(15); active = list.GetIntArray(16); label = list.GetInt(17); attributes = list.GetIntArray2(18); location = list.GetString(19); skins = list.GetStringArray(20); quality = list.GetInt(21); description = list.GetString(22); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Pet"); 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 ItemPet CreateThis() { return new ItemPet(); } } }