C# Class SpilGames.Unity.Helpers.SpilGameDataHelper

This is the business object that the developer can use to work with Spil Game Data (Currencies, Items, Bundles, Shop). Much easier to work with than the raw data!
Afficher le fichier Open project: spilgames/spil_event_unity_plugin

Méthodes publiques

Свойство Type Description
Bundles List
Currencies List
Items List
Promotions List
Shop Shop

Méthodes publiques

Méthode Description
GetBundle ( int bundleId ) : Bundle

Helper method that returns the Bundle for a given bundleId Returns null if no bundle was found

GetCurrency ( int currencyId ) : Currency

Helper method that returns the Currency for a given currencyId Returns null if no currency was found

GetItem ( int itemId ) : Item

Helper method that returns the Item for a given itemId Returns null if no item was found

RefreshData ( SpilUnityImplementationBase Instance ) : void
SpilGameDataHandler ( ) : void
SpilGameDataHelper ( SpilUnityImplementationBase Instance ) : System

Private Methods

Méthode Description
AddDataToHelper ( List currencies, List items, List bundles, List shop, List promotions ) : void
UpdateSpilGameData ( ) : void

Method Details

GetBundle() public méthode

Helper method that returns the Bundle for a given bundleId Returns null if no bundle was found
public GetBundle ( int bundleId ) : Bundle
bundleId int
Résultat Bundle

GetCurrency() public méthode

Helper method that returns the Currency for a given currencyId Returns null if no currency was found
public GetCurrency ( int currencyId ) : Currency
currencyId int
Résultat Currency

GetItem() public méthode

Helper method that returns the Item for a given itemId Returns null if no item was found
public GetItem ( int itemId ) : Item
itemId int
Résultat Item

RefreshData() public méthode

public RefreshData ( SpilUnityImplementationBase Instance ) : void
Instance SpilUnityImplementationBase
Résultat void

SpilGameDataHandler() public méthode

public SpilGameDataHandler ( ) : void
Résultat void

SpilGameDataHelper() public méthode

public SpilGameDataHelper ( SpilUnityImplementationBase Instance ) : System
Instance SpilUnityImplementationBase
Résultat System

Property Details

Bundles public_oe property

public List Bundles
Résultat List

Currencies public_oe property

public List Currencies
Résultat List

Items public_oe property

public List Items
Résultat List

Promotions public_oe property

public List Promotions
Résultat List

Shop public_oe property

public Shop,SpilGames.Unity.Helpers Shop
Résultat Shop