166 lines
2.8 KiB
C#
Raw Permalink Normal View History

2025-05-18 01:04:31 +08:00
//------------------------------------------------------------------------------
// <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: function.xlsx
/// </summary>
public partial class ItemFunction : Item, IItem
{
public const string ASSET_NAME = "function";
/// <summary>
/// 开放功能任务id
/// index:1
/// </summary>
public int condition
{
get; private set;
}
/// <summary>
/// 预先开放任务id
/// index:2
/// </summary>
public int preview
{
get; private set;
}
/// <summary>
///
/// index:3
/// </summary>
public string lockText
{
get; private set;
}
/// <summary>
///
/// index:4
/// </summary>
public string name
{
get; private set;
}
/// <summary>
///
/// index:5
/// </summary>
public string[] icon
{
get; private set;
}
/// <summary>
///
/// index:6
/// </summary>
public int sort
{
get; private set;
}
/// <summary>
///
/// index:7
/// </summary>
public int tips
{
get; private set;
}
/// <summary>
///
/// index:8
/// </summary>
public int read
{
get; private set;
}
/// <summary>
/// 奖励
/// index:9
/// </summary>
public int[] rewards
{
get; private set;
}
/// <summary>
/// 目标TutorialAction表内对应id
/// index:10
/// </summary>
public string button
{
get; private set;
}
/// <summary>
/// 开放系统下方文字描述
/// index:11
/// </summary>
public string describe
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
condition = list.GetInt(1);
preview = list.GetInt(2);
lockText = list.GetString(3);
name = list.GetString(4);
icon = list.GetStringArray(5);
sort = list.GetInt(6);
tips = list.GetInt(7);
read = list.GetInt(8);
rewards = list.GetIntArray(9);
button = list.GetString(10);
describe = list.GetString(11);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemFunction> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Function");
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 ItemFunction CreateThis()
{
return new ItemFunction();
}
}
}