166 lines
3.0 KiB
C#
166 lines
3.0 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: mission.xlsx
|
||
/// </summary>
|
||
public partial class ItemMission : Item, IItem
|
||
{
|
||
public const string ASSET_NAME = "mission";
|
||
|
||
/// <summary>
|
||
/// 主任务Id
|
||
/// index:1
|
||
/// </summary>
|
||
public int mainId
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 标题
|
||
/// index:2
|
||
/// </summary>
|
||
public int nameId
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 描述
|
||
/// index:3
|
||
/// </summary>
|
||
public int descriptionId
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 类型 1:每日任务 2:成就任务 3:主线任务 4:境界任务 5:战票周任务 6:隐式任务(直接发放奖励)
|
||
/// index:4
|
||
/// </summary>
|
||
public int type
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 0:永久 1:日清 2:周清 3:月清
|
||
/// index:5
|
||
/// </summary>
|
||
public int reset
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
///
|
||
/// index:6
|
||
/// </summary>
|
||
public int eventId
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 事件参数 lang描述占位符为1
|
||
/// index:7
|
||
/// </summary>
|
||
public int[] eventArgs
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 事件目标 lang描述占位符为0
|
||
/// index:8
|
||
/// </summary>
|
||
public int eventTarget
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 前置任务
|
||
/// index:9
|
||
/// </summary>
|
||
public int prev
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 必要条件 (未完成状态下,当前任务不会累计)
|
||
/// index:10
|
||
/// </summary>
|
||
public int requirement
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 奖励
|
||
/// index:11
|
||
/// </summary>
|
||
public int[] rewards
|
||
{
|
||
get; private set;
|
||
}
|
||
|
||
public void Load(IList<object> list)
|
||
{
|
||
id = list.GetInt(0);
|
||
mainId = list.GetInt(1);
|
||
nameId = list.GetInt(2);
|
||
descriptionId = list.GetInt(3);
|
||
type = list.GetInt(4);
|
||
reset = list.GetInt(5);
|
||
eventId = list.GetInt(6);
|
||
eventArgs = list.GetIntArray(7);
|
||
eventTarget = list.GetInt(8);
|
||
prev = list.GetInt(9);
|
||
requirement = list.GetInt(10);
|
||
rewards = list.GetIntArray(11);
|
||
}
|
||
|
||
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemMission> result)
|
||
{
|
||
if (result == null)
|
||
{
|
||
return false;
|
||
}
|
||
var list = dictionary.GetList("Mission");
|
||
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 ItemMission CreateThis()
|
||
{
|
||
return new ItemMission();
|
||
}
|
||
}
|
||
}
|