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!
Exibir arquivo Open project: spilgames/spil_event_unity_plugin

Public Properties

Property Type Description
Bundles List
Currencies List
Items List
Promotions List
Shop Shop

Public Methods

Method 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

Method Description
AddDataToHelper ( List currencies, List items, List bundles, List shop, List promotions ) : void
UpdateSpilGameData ( ) : void

Method Details

GetBundle() public method

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

GetCurrency() public method

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

GetItem() public method

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

RefreshData() public method

public RefreshData ( SpilUnityImplementationBase Instance ) : void
Instance SpilUnityImplementationBase
return void

SpilGameDataHandler() public method

public SpilGameDataHandler ( ) : void
return void

SpilGameDataHelper() public method

public SpilGameDataHelper ( SpilUnityImplementationBase Instance ) : System
Instance SpilUnityImplementationBase
return System

Property Details

Bundles public_oe property

public List Bundles
return List

Currencies public_oe property

public List Currencies
return List

Items public_oe property

public List Items
return List

Promotions public_oe property

public List Promotions
return List

Shop public_oe property

public Shop,SpilGames.Unity.Helpers Shop
return Shop