//------------------------------------------------------------------------------ // // 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: function.xlsx /// public partial class ItemFunction : Item, IItem { public const string ASSET_NAME = "function"; /// /// 开放功能任务id /// index:1 /// public int condition { get; private set; } /// /// 预先开放任务id /// index:2 /// public int preview { get; private set; } /// /// /// index:3 /// public string lockText { get; private set; } /// /// /// index:4 /// public string name { get; private set; } /// /// /// index:5 /// public string[] icon { get; private set; } /// /// /// index:6 /// public int sort { get; private set; } /// /// /// index:7 /// public int tips { get; private set; } /// /// /// index:8 /// public int read { get; private set; } /// /// 奖励 /// index:9 /// public int[] rewards { get; private set; } /// /// 目标:TutorialAction表内对应id /// index:10 /// public string button { get; private set; } /// /// 开放系统下方文字描述 /// index:11 /// public string describe { get; private set; } public void Load(IList 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 dictionary, List 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)list[i]); result.Add(item); } return true; } private static ItemFunction CreateThis() { return new ItemFunction(); } } }