136 lines
2.3 KiB
C#
Raw 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: kungfu.xlsx
/// </summary>
public partial class ItemBook : Item, IItem
{
public const string ASSET_NAME = "kungfu";
/// <summary>
/// 标题
/// index:1
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 作者
/// index:2
/// </summary>
public string author
{
get; private set;
}
/// <summary>
/// 内容
/// index:3
/// </summary>
public string[] contents
{
get; private set;
}
/// <summary>
///
/// index:4
/// </summary>
public int skill
{
get; private set;
}
/// <summary>
///
/// index:5
/// </summary>
public int[] skillArgs
{
get; private set;
}
/// <summary>
///
/// index:6
/// </summary>
public int combatValue
{
get; private set;
}
/// <summary>
///
/// index:7
/// </summary>
public string[] icon
{
get; private set;
}
/// <summary>
/// 描述
/// index:8
/// </summary>
public string description
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
name = list.GetString(1);
author = list.GetString(2);
contents = list.GetStringArray(3);
skill = list.GetInt(4);
skillArgs = list.GetIntArray(5);
combatValue = list.GetInt(6);
icon = list.GetStringArray(7);
description = list.GetString(8);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBook> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Book");
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 ItemBook CreateThis()
{
return new ItemBook();
}
}
}