2025-05-18 01:04:31 +08:00

166 lines
3.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//------------------------------------------------------------------------------
// <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();
}
}
}