예제 #1
0
 /// <summary>
 /// 得到指定包裹类型的道具,并按照位置下标排序
 /// </summary>
 /// <param name="package"></param>
 /// <returns></returns>
 public IEnumerable <SaveItem> Where(ItemLocation.PackageType package)
 {
     return(items.Where(i => i.loc.type == package)
            .OrderBy(i => i.baseid).ThenBy(i => i.num));
 }
예제 #2
0
 public SaveItem this[ItemLocation.PackageType type, int index] {
     get { return(items.Find(i => i.loc.type == type && i.loc.index == index)); }
 }