docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SingleCollectionCatalog<TItem>

    The base class of the catalog storing only one kind of CatalogItem. This kind is obviously described by TItem. Most of the catalogs are single collections at the moment.

    Inheritance
    object
    BaseCatalog
    SingleCollectionCatalog<TItem>
    CurrencyCatalog
    InventoryCatalog
    StoreCatalog
    TransactionCatalog
    Inherited Members
    BaseCatalog.FindCategory(string)
    BaseCatalog.ContainsCategory(string)
    BaseCatalog.ContainsCategory(Category)
    BaseCatalog.GetCategories()
    BaseCatalog.GetCategories(ICollection<Category>)
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public abstract class SingleCollectionCatalog<TItem> : BaseCatalog where TItem : CatalogItem
    Type Parameters
    Name Description
    TItem

    The type of CatalogItem stored in this catalog.

    Methods

    Name Description
    ContainsItem(string)

    Tells whether an item with the specified id exists or not.

    FindItem(string)

    Looks for a TItem instance by its id.

    FindItemsByCategory(string)

    Returns an array of all the TItem instances of this catalog matching the Category by its id.

    FindItemsByCategory(string, ICollection<TItem>)

    Fills in the given target collection with all TItem instances of this catalog matching the Category by its id and returns their count. The target collection is cleared before being populated.

    FindItemsByCategory(Category)

    Returns the array of all the TItem instances of this catalog matching the given Category.

    FindItemsByCategory(Category, ICollection<TItem>)

    Fills in the given target collection with all TItem instances of this catalog matching the given category and returns their count. The target collection is cleared before being populated.

    GetItems()

    Returns an array of all the TItem isntances of this catalog.

    GetItems(ICollection<TItem>)

    Fills in the given target collection with all TItem instances of this catalog and returns their count. The target collection is cleared before being populated.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)