196 lines
3.4 KiB
C#
196 lines
3.4 KiB
C#
![]() |
//------------------------------------------------------------------------------
|
||
|
// <auto-generated>
|
||
|
// This code was generated by a tool.
|
||
|
//
|
||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||
|
// the code is regenerated.
|
||
|
// </auto-generated>
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
namespace G
|
||
|
{
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using F;
|
||
|
using F.Item;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Generated from: activity.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemActivityParent : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "activity";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 1.任务 2.时间 3.双重
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public int type
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 签到活动id
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public int signActivity
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 次数Id
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public int signTime
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 活动专属任务
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int[] missions
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 兑换活动id
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int exchangeActivity
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 礼包活动id
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public int giftActivity
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 充值活动id
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public int rechargeActivity
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 提前展示时间
|
||
|
/// index:8
|
||
|
/// </summary>
|
||
|
public int showTime
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 开始时间
|
||
|
/// index:9
|
||
|
/// </summary>
|
||
|
public int startTime
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 结束时间
|
||
|
/// index:10
|
||
|
/// </summary>
|
||
|
public int endTime
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 专属副本id
|
||
|
/// index:11
|
||
|
/// </summary>
|
||
|
public int copyId
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 副本开启时间
|
||
|
/// index:12
|
||
|
/// </summary>
|
||
|
public int copyStart
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 副本关闭时间
|
||
|
/// index:13
|
||
|
/// </summary>
|
||
|
public int copyEnd
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 激活的前置任务id (类型一的关闭条件为此任务已经领取)
|
||
|
/// index:14
|
||
|
/// </summary>
|
||
|
public int activationMission
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> 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<string, object> dictionary, List<ItemActivityParent> 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<object>)list[i]);
|
||
|
result.Add(item);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private static ItemActivityParent CreateThis()
|
||
|
{
|
||
|
return new ItemActivityParent();
|
||
|
}
|
||
|
}
|
||
|
}
|