C# Class SpilGames.Unity.Utils.UnityEditor.Responses.PlayerDataResponse

Inheritance: Response
Datei anzeigen Open project: spilgames/spil_event_unity_plugin

Public Properties

Property Type Description
Inventory InventoryData
Wallet WalletData

Public Methods

Method Description
ConsumeBundle ( int bundleId, string reason ) : void
InitInventory ( ) : InventoryData
InitWallet ( ) : WalletData
InventoryOperation ( string action, int itemId, int amount, string reason ) : void
ProcessPlayerDataResponse ( ResponseEvent response ) : void
WalletOperation ( string action, int currencyId, int amount, string reason ) : void

Private Methods

Method Description
CalculatePlayerDataResponse ( WalletData receivedWallet, InventoryData receivedInventory ) : void
GetBundleFromObjects ( int bundleId ) : SpilBundleData
GetCurrencyFromWallet ( int currencyId ) : PlayerCurrencyData
GetItemFromInventory ( int itemId ) : PlayerItemData
GetItemFromObjects ( int itemId ) : SpilItemData
GetPromotionFromObjects ( int bundleId ) : SpilShopPromotionData
IsPromotionValid ( SpilShopPromotionData promotion ) : bool
SendUpdatePlayerDataEvent ( PlayerItemData item, string reason ) : void
SendUpdatePlayerDataEvent ( SpilBundleData bundle, string reason ) : void
SendUpdatePlayerDataEvent ( string reason ) : void
UpdateCurrency ( PlayerCurrencyData currency ) : void
UpdateItem ( PlayerItemData item ) : void

Method Details

ConsumeBundle() public method

public ConsumeBundle ( int bundleId, string reason ) : void
bundleId int
reason string
return void

InitInventory() public method

public InitInventory ( ) : InventoryData
return InventoryData

InitWallet() public method

public InitWallet ( ) : WalletData
return WalletData

InventoryOperation() public method

public InventoryOperation ( string action, int itemId, int amount, string reason ) : void
action string
itemId int
amount int
reason string
return void

ProcessPlayerDataResponse() public method

public ProcessPlayerDataResponse ( ResponseEvent response ) : void
response ResponseEvent
return void

WalletOperation() public method

public WalletOperation ( string action, int currencyId, int amount, string reason ) : void
action string
currencyId int
amount int
reason string
return void

Property Details

Inventory public_oe property

public InventoryData Inventory
return InventoryData

Wallet public_oe property

public WalletData Wallet
return WalletData