//------------------------------------------------------------------------------ // // 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: activity.xlsx /// public partial class ItemActivityParent : Item, IItem { public const string ASSET_NAME = "activity"; /// /// 1.任务 2.时间 3.双重 /// index:1 /// public int type { get; private set; } /// /// 签到活动id /// index:2 /// public int signActivity { get; private set; } /// /// 次数Id /// index:3 /// public int signTime { get; private set; } /// /// 活动专属任务 /// index:4 /// public int[] missions { get; private set; } /// /// 兑换活动id /// index:5 /// public int exchangeActivity { get; private set; } /// /// 礼包活动id /// index:6 /// public int giftActivity { get; private set; } /// /// 充值活动id /// index:7 /// public int rechargeActivity { get; private set; } /// /// 提前展示时间 /// index:8 /// public int showTime { get; private set; } /// /// 开始时间 /// index:9 /// public int startTime { get; private set; } /// /// 结束时间 /// index:10 /// public int endTime { get; private set; } /// /// 专属副本id /// index:11 /// public int copyId { get; private set; } /// /// 副本开启时间 /// index:12 /// public int copyStart { get; private set; } /// /// 副本关闭时间 /// index:13 /// public int copyEnd { get; private set; } /// /// 激活的前置任务id (类型一的关闭条件为此任务已经领取) /// index:14 /// public int activationMission { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); signActivity = list.GetInt(2); signTime = list.GetInt(3); missions = list.GetIntArray(4); exchangeActivity = list.GetInt(5); giftActivity = list.GetInt(6); rechargeActivity = list.GetInt(7); showTime = list.GetInt(8); startTime = list.GetInt(9); endTime = list.GetInt(10); copyId = list.GetInt(11); copyStart = list.GetInt(12); copyEnd = list.GetInt(13); activationMission = list.GetInt(14); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("ActivityParent"); 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 ItemActivityParent CreateThis() { return new ItemActivityParent(); } } }