コード例 #1
0
 public static Boolean isComponent(ItemCategory itemCategory)
 {
     return(itemCategory.Equals(Items.ItemCategory.Ammo_Component) ||
            itemCategory.Equals(Items.ItemCategory.Consumable) ||
            itemCategory.Equals(Items.ItemCategory.Electronic_Item) ||
            itemCategory.Equals(Items.ItemCategory.Fabricated_Item) ||
            itemCategory.Equals(Items.ItemCategory.Invalid) ||
            itemCategory.Equals(Items.ItemCategory.Looted_Item) ||
            itemCategory.Equals(Items.ItemCategory.Raw_Resource) ||
            itemCategory.Equals(Items.ItemCategory.Reactor_Component) ||
            itemCategory.Equals(Items.ItemCategory.Refined_Resource) ||
            itemCategory.Equals(Items.ItemCategory.Trade_Good) ||
            itemCategory.Equals(Items.ItemCategory.Weapon_Component));
 }
コード例 #2
0
 public static Boolean isComponent(ItemCategory itemCategory)
 {
     return itemCategory.Equals(Items.ItemCategory.Ammo_Component)
         || itemCategory.Equals(Items.ItemCategory.Consumable)
         || itemCategory.Equals(Items.ItemCategory.Electronic_Item)
         || itemCategory.Equals(Items.ItemCategory.Fabricated_Item)
         || itemCategory.Equals(Items.ItemCategory.Invalid)
         || itemCategory.Equals(Items.ItemCategory.Looted_Item)
         || itemCategory.Equals(Items.ItemCategory.Raw_Resource)
         || itemCategory.Equals(Items.ItemCategory.Reactor_Component)
         || itemCategory.Equals(Items.ItemCategory.Refined_Resource)
         || itemCategory.Equals(Items.ItemCategory.Trade_Good)
         || itemCategory.Equals(Items.ItemCategory.Weapon_Component);
 }