C# 클래스 SpilGames.Unity.Helpers.PlayerDataHelper

This is the business object that the developer can use to work with Player Data (Wallet and Inventory). Much easier to work with than the raw data!
파일 보기 프로젝트 열기: spilgames/spil_event_unity_plugin

공개 프로퍼티들

프로퍼티 타입 설명
Inventory Inventory
Wallet Wallet

공개 메소드들

메소드 설명
BuyBundle ( int bundleId, string reason ) : void

Helper method that consumes the bundle given a bundleId and a reason

ConsumeBundle ( int bundleId, string reason ) : void

Helper method that consumes the bundle given a bundleId and a reason

GetCurrencyBalance ( int currencyId ) : int

Helper method that returns the Currency Balance given a currencyId Returns -1 if no currency was found

GetItemAmount ( int itemId ) : int

Helper method that returns the Item Amount given a itemId Returns -1 if no item was found

InventoryHasItem ( int itemId ) : System.Boolean

Helper method that returns true if an item is in the inventory

PlayerDataHelper ( SpilUnityImplementationBase Instance ) : System
PlayerDataUpdatedHandler ( ) : void

비공개 메소드들

메소드 설명
AddDataToHelper ( List walletCurrencies, List inventoryItems ) : void
UpdatePlayerData ( ) : void

메소드 상세

BuyBundle() 공개 메소드

Helper method that consumes the bundle given a bundleId and a reason
public BuyBundle ( int bundleId, string reason ) : void
bundleId int
reason string
리턴 void

ConsumeBundle() 공개 메소드

Helper method that consumes the bundle given a bundleId and a reason
public ConsumeBundle ( int bundleId, string reason ) : void
bundleId int
reason string
리턴 void

GetCurrencyBalance() 공개 메소드

Helper method that returns the Currency Balance given a currencyId Returns -1 if no currency was found
public GetCurrencyBalance ( int currencyId ) : int
currencyId int
리턴 int

GetItemAmount() 공개 메소드

Helper method that returns the Item Amount given a itemId Returns -1 if no item was found
public GetItemAmount ( int itemId ) : int
itemId int
리턴 int

InventoryHasItem() 공개 메소드

Helper method that returns true if an item is in the inventory
public InventoryHasItem ( int itemId ) : System.Boolean
itemId int
리턴 System.Boolean

PlayerDataHelper() 공개 메소드

public PlayerDataHelper ( SpilUnityImplementationBase Instance ) : System
Instance SpilUnityImplementationBase
리턴 System

PlayerDataUpdatedHandler() 공개 메소드

public PlayerDataUpdatedHandler ( ) : void
리턴 void

프로퍼티 상세

Inventory 공개적으로 프로퍼티

public Inventory,SpilGames.Unity.Helpers Inventory
리턴 Inventory

Wallet 공개적으로 프로퍼티

public Wallet,SpilGames.Unity.Helpers Wallet
리턴 Wallet