The PlayerCurrency represents one currency of a player. The Amount shows the current value of the currency.
More...
|
override bool | Equals (object obj) |
|
override int | GetHashCode () |
|
virtual int | GetBroadcastChecksum () |
| The broadcast checksum is a concept for change-detection. More...
|
|
|
string | CurrencyId |
| The id of the CurrencyContent that this currency is for.
|
|
|
long | Amount [getset] |
| The current amount of the currency. This value can change over time, and will get realtime updates from the server. Use the OnAmountUpdated event to be notified when that happens. More...
|
|
|
Action< long > | OnAmountUpdated |
| An event that happens whenever the Amount changes this event happens after DefaultObservable.OnUpdated
|
|
Action | OnUpdated |
| A "change" only happens when the value of the GetBroadcastChecksum changes.
|
|
Action | OnUpdated |
| An event that happens whenever the object has changed.
|
|
The PlayerCurrency represents one currency of a player. The Amount shows the current value of the currency.
◆ Amount
long Beamable.Player.PlayerCurrency.Amount |
|
getset |
The current amount of the currency. This value can change over time, and will get realtime updates from the server. Use the OnAmountUpdated event to be notified when that happens.
You can set this currency locally, but isn't recommended.
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Player/PlayerCurrencies.cs