Show / Hide Table of Contents

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()
Namespace: StoryVerse
Assembly: Assembly-CSharp.dll.dll
Syntax
public class Shop

Constructors

Shop()

Declaration
public Shop()

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
Type Description
UnityOfferListEvent

OnGetPromoOffersError

Declaration
public PlayFabErrorEvent OnGetPromoOffersError
Field Value
Type Description
PlayFabErrorEvent

OnGetStore

Declaration
public UnityOfferListEvent OnGetStore
Field Value
Type Description
UnityOfferListEvent

OnGetStoreError

Declaration
public PlayFabErrorEvent OnGetStoreError
Field Value
Type Description
PlayFabErrorEvent

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
Type Description
UnityOfferEvent

OnPurchaseFailure

Declaration
public PlayFabErrorEvent OnPurchaseFailure
Field Value
Type Description
PlayFabErrorEvent

OnSpendStars

Declaration
public UnityIntEvent OnSpendStars
Field Value
Type Description
UnityIntEvent

OnSpendStarsError

Declaration
public PlayFabErrorEvent OnSpendStarsError
Field Value
Type Description
PlayFabErrorEvent

OnSpendTickets

Declaration
public UnityIntEvent OnSpendTickets
Field Value
Type Description
UnityIntEvent

OnSpendTicketsError

Declaration
public PlayFabErrorEvent OnSpendTicketsError
Field Value
Type Description
PlayFabErrorEvent

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
public void Initialize()

Purchase(Offer, Character)

Buy a specific Offer

Declaration
public void Purchase(Offer offer, Character character = null)
Parameters
Type Name Description
Offer offer
Character character

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

Back to top Generated by DocFX