//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace G { using System.Collections; using System.Collections.Generic; using F; using F.Item; /// /// Generated from: mail.xlsx /// public partial class ItemMail : Item, IItem { public const string ASSET_NAME = "mail"; /// /// 奖励 /// index:1 /// public int[] rewards { get; private set; } /// /// /// index:2 /// public string title { get; private set; } /// /// 解锁条件 /// index:3 /// public string content { get; private set; } /// /// 发送人 /// index:4 /// public string sender { get; private set; } /// /// 生命周期 /// index:5 /// public int life { get; private set; } /// /// 永久邮件 /// index:6 /// public int forever { get; private set; } public void Load(IList 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 dictionary, List 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)list[i]); result.Add(item); } return true; } private static ItemMail CreateThis() { return new ItemMail(); } } }