146 lines
2.4 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: home.xlsx
/// </summary>
public partial class ItemBeauty : Item, IItem
{
public const string ASSET_NAME = "home";
/// <summary>
/// 伴侣名字
/// index:1
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 伴侣描述ID
/// index:2
/// </summary>
public string description
{
get; private set;
}
/// <summary>
/// 皮肤ID
/// index:3
/// </summary>
public int[] skins
{
get; private set;
}
/// <summary>
/// 技能ID
/// index:4
/// </summary>
public int[] skills
{
get; private set;
}
/// <summary>
///
/// index:5
/// </summary>
public int gainWay
{
get; private set;
}
/// <summary>
///
/// index:6
/// </summary>
public string talk
{
get; private set;
}
/// <summary>
///
/// index:7
/// </summary>
public int friendMax
{
get; private set;
}
/// <summary>
///
/// index:8
/// </summary>
public string[] icon
{
get; private set;
}
/// <summary>
/// 地点
/// index:9
/// </summary>
public string location
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
name = list.GetString(1);
description = list.GetString(2);
skins = list.GetIntArray(3);
skills = list.GetIntArray(4);
gainWay = list.GetInt(5);
talk = list.GetString(6);
friendMax = list.GetInt(7);
icon = list.GetStringArray(8);
location = list.GetString(9);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBeauty> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Beauty");
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 ItemBeauty CreateThis()
{
return new ItemBeauty();
}
}
}