//------------------------------------------------------------------------------ // // 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: vip.xlsx /// public partial class ItemVip : Item, IItem { public const string ASSET_NAME = "vip"; /// /// 1:vip 2:商城特殊 /// index:1 /// public int type { get; private set; } /// /// 角色名 /// index:2 /// public string name { get; private set; } /// /// 头像名 /// index:3 /// public string[] icon { get; private set; } /// /// 解锁条件 /// index:4 /// public int[] unlockA { get; private set; } /// /// 混合变现解锁条件 /// index:5 /// public int[] unlockB { get; private set; } /// /// 权益 /// index:6 /// public int[][] rights { get; private set; } /// /// 每日奖励 /// index:7 /// public int adGiftBox { get; private set; } /// /// 付费礼包 /// index:8 /// public int freeGiftBox { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); name = list.GetString(2); icon = list.GetStringArray(3); unlockA = list.GetIntArray(4); unlockB = list.GetIntArray(5); rights = list.GetIntArray2(6); adGiftBox = list.GetInt(7); freeGiftBox = list.GetInt(8); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Vip"); 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 ItemVip CreateThis() { return new ItemVip(); } } }