Class Shop
Inheritance
System.Object
Shop
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Assembly-CSharp.dll.dll
Syntax
Constructors
Shop()
Declaration
Fields
Items
Declaration
public Dictionary<string, List<CatalogItem>> Items
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<PlayFab.ClientModels.CatalogItem>> |
|
OnGetItems
Declaration
public UnityEvent<bool> OnGetItems
Field Value
Type |
Description |
UnityEngine.Events.UnityEvent<System.Boolean> |
|
OnGetItemsError
Declaration
public UnityEvent<PlayFabError> OnGetItemsError
Field Value
Type |
Description |
UnityEngine.Events.UnityEvent<PlayFab.PlayFabError> |
|
OnGetPromoOffers
Declaration
public UnityOfferListEvent OnGetPromoOffers
Field Value
OnGetPromoOffersError
Declaration
public PlayFabErrorEvent OnGetPromoOffersError
Field Value
OnGetStore
Declaration
public UnityOfferListEvent OnGetStore
Field Value
OnGetStoreError
Declaration
public PlayFabErrorEvent OnGetStoreError
Field Value
OnInitialize
Declaration
public UnityEvent OnInitialize
Field Value
Type |
Description |
UnityEngine.Events.UnityEvent |
|
OnInitializeError
Declaration
public IAPInitializeFailedEvent OnInitializeError
Field Value
Type |
Description |
IAPInitializeFailedEvent |
|
OnPurchase
Declaration
public UnityOfferEvent OnPurchase
Field Value
OnPurchaseFailure
Declaration
public PlayFabErrorEvent OnPurchaseFailure
Field Value
OnSpendStars
Declaration
public UnityIntEvent OnSpendStars
Field Value
OnSpendStarsError
Declaration
public PlayFabErrorEvent OnSpendStarsError
Field Value
OnSpendTickets
Declaration
public UnityIntEvent OnSpendTickets
Field Value
OnSpendTicketsError
Declaration
public PlayFabErrorEvent OnSpendTicketsError
Field Value
Methods
GetItems(String)
Get a specific Catalog of items by Catalog.
Declaration
public void GetItems(string itemCatalog = "Purchasables")
Parameters
Type |
Name |
Description |
System.String |
itemCatalog |
|
GetItemsByCategory(String)
Get a list of Catalog Items, by category ( e.g. ItemClass )
Note: this will retrun all items across all catalogs that have been received. Like a search or a filter.
Declaration
public List<CatalogItem> GetItemsByCategory(string category)
Parameters
Type |
Name |
Description |
System.String |
category |
|
Returns
Type |
Description |
System.Collections.Generic.List<PlayFab.ClientModels.CatalogItem> |
|
GetPromoOffers(String)
Get a List of 'Promo' Offers
Declaration
public void GetPromoOffers(string seasonId = "")
Parameters
Type |
Name |
Description |
System.String |
seasonId |
|
GetStore(String)
Retrieves offers from a specific store by store ID
Declaration
public void GetStore(string storeId)
Parameters
Type |
Name |
Description |
System.String |
storeId |
|
Initialize()
Declaration
Purchase(Offer, Character)
Declaration
public void Purchase(Offer offer, Character character = null)
Parameters
SpendStars(Int32, Object)
Spend crystals currency for arbitrary purpose
Declaration
public void SpendStars(int amount, object data = null)
Parameters
Type |
Name |
Description |
System.Int32 |
amount |
|
System.Object |
data |
optional data blob to be included for analytics
|
SpendTickets(Int32, Object)
Spend tickets currency for arbitrary purpose
Declaration
public void SpendTickets(int amount, object data = null)
Parameters
Type |
Name |
Description |
System.Int32 |
amount |
amount of KY
|
System.Object |
data |
optional data blob to be included for analytics
|