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

156 lines
2.9 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: adventures.xlsx
/// </summary>
public partial class ItemAdventure : Item, IItem
{
public const string ASSET_NAME = "adventures";
/// <summary>
/// 主事件标识 1主事件 2任务事件
/// index:1
/// </summary>
public int type
{
get; private set;
}
/// <summary>
/// 事件参数
/// index:2
/// </summary>
public int[] typeArgs
{
get; private set;
}
/// <summary>
///
/// index:3
/// </summary>
public int story
{
get; private set;
}
/// <summary>
/// 事件1 0无事件 1:跳转 2 3试用装备单局有效 4立刻给与buff单局有效 5:立刻给与技能(单局有效) 6送装备永久 7解锁技能永久
/// index:4
/// </summary>
public string matter_1
{
get; private set;
}
/// <summary>
/// 事件1条件
/// index:5
/// </summary>
public int[] option_1
{
get; private set;
}
/// <summary>
/// 事件2
/// index:6
/// </summary>
public string matter_2
{
get; private set;
}
/// <summary>
/// 事件2条件
/// index:7
/// </summary>
public int[] option_2
{
get; private set;
}
/// <summary>
/// 事件3
/// index:8
/// </summary>
public string matter_3
{
get; private set;
}
/// <summary>
/// 事件3条件
/// index:9
/// </summary>
public int[] option_3
{
get; private set;
}
/// <summary>
/// 文本
/// index:10
/// </summary>
public string describe
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
type = list.GetInt(1);
typeArgs = list.GetIntArray(2);
story = list.GetInt(3);
matter_1 = list.GetString(4);
option_1 = list.GetIntArray(5);
matter_2 = list.GetString(6);
option_2 = list.GetIntArray(7);
matter_3 = list.GetString(8);
option_3 = list.GetIntArray(9);
describe = list.GetString(10);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemAdventure> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Adventure");
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 ItemAdventure CreateThis()
{
return new ItemAdventure();
}
}
}