Skip to main content

Class ItemDatabase

Declaration
public static class ItemDatabase

Methods

Find<TItem>(string)

Declaration
public static TItem Find<TItem>(string id) where TItem : Item
Returns

<TItem>

Parameters
TypeName
System.Stringid
Type Parameters
  • TItem

Filter<TItem>(Func<TItem, bool>)

Declaration
public static List<TItem> Filter<TItem>(Func<TItem, bool> predicate = null) where TItem : Item
Returns

System.Collections.Generic.List<<TItem>>

Parameters
TypeName
System.Func<<TItem>,System.Boolean>predicate
Type Parameters
  • TItem

Filter(Func<Item, bool>)

Declaration
public static List<Item> Filter(Func<Item, bool> predicate = null)
Returns

System.Collections.Generic.List<MatchinghamGames.BackpackModule.Models.Item>

Parameters
TypeName
System.Func<MatchinghamGames.BackpackModule.Models.Item,System.Boolean>predicate

GetItems()

Declaration
public static List<Item> GetItems()
Returns

System.Collections.Generic.List<MatchinghamGames.BackpackModule.Models.Item>