//------------------------------------------------------------------------------ // // 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: random.xlsx /// public partial class ItemRandom : Item, IItem { public const string ASSET_NAME = "random"; /// /// 1:清次数 2:不清次数 /// index:1 /// public int type { get; private set; } /// /// 千分数 /// index:2 /// public int rate { get; private set; } /// /// 千 /// index:3 /// public int addRate { get; private set; } /// /// 初始次数 /// index:4 /// public int initCount { get; private set; } /// /// 保底次数 /// index:5 /// public int maxCount { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); rate = list.GetInt(2); addRate = list.GetInt(3); initCount = list.GetInt(4); maxCount = list.GetInt(5); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Random"); 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 ItemRandom CreateThis() { return new ItemRandom(); } } }