Beamable SDK
Public Member Functions | Public Attributes | List of all members
Beamable.Common.Content.PlayerReward< TOptionalApiRewards > Class Template Reference

A PlayerReward describes a set of rewards that a player can claim. More...

Inheritance diagram for Beamable.Common.Content.PlayerReward< TOptionalApiRewards >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Content.PlayerReward< TOptionalApiRewards >:
Collaboration graph
[legend]

Public Member Functions

virtual bool HasAnyReward ()
 Check if there are any currencies or items in this PlayerReward More...
 

Public Attributes

OptionalString description
 An optional textual description of the reward. Use this to quickly summarize for development what the reward grants.
 
OptionalCurrencyChangeList currencies
 Optionally, each reward can grant a set of currencies.
 
OptionalNewItemList items
 Optionally, each reward can grant a set of items with properties.
 
OptionalBoolean applyVipBonus
 Optionally, when a reward is claimed, the vip bonus can be applied to the currencies.
 
TOptionalApiRewards webhooks
 

Detailed Description

A PlayerReward describes a set of rewards that a player can claim.

Member Function Documentation

◆ HasAnyReward()

virtual bool Beamable.Common.Content.PlayerReward< TOptionalApiRewards >.HasAnyReward ( )
inlinevirtual

Check if there are any currencies or items in this PlayerReward

Returns
true if there are any rewards, false otherwise.

Reimplemented in Beamable.Common.Announcements.AnnouncementPlayerRewards.


The documentation for this class was generated from the following file: