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

116 lines
2.0 KiB
C#

//------------------------------------------------------------------------------
// <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: mail.xlsx
/// </summary>
public partial class ItemMail : Item, IItem
{
public const string ASSET_NAME = "mail";
/// <summary>
/// 奖励
/// index:1
/// </summary>
public int[] rewards
{
get; private set;
}
/// <summary>
///
/// index:2
/// </summary>
public string title
{
get; private set;
}
/// <summary>
/// 解锁条件
/// index:3
/// </summary>
public string content
{
get; private set;
}
/// <summary>
/// 发送人
/// index:4
/// </summary>
public string sender
{
get; private set;
}
/// <summary>
/// 生命周期
/// index:5
/// </summary>
public int life
{
get; private set;
}
/// <summary>
/// 永久邮件
/// index:6
/// </summary>
public int forever
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
rewards = list.GetIntArray(1);
title = list.GetString(2);
content = list.GetString(3);
sender = list.GetString(4);
life = list.GetInt(5);
forever = list.GetInt(6);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemMail> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Mail");
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 ItemMail CreateThis()
{
return new ItemMail();
}
}
}