|
Promise< EventClaimResponse > | Claim (string eventId) |
|
Promise< Unit > | SetScore (string eventId, double score, bool incremental=false, IDictionary< string, object > stats=null) |
| Submit a score for the current player. Note that this is only allowed if the event has the write_self permission. More...
|
|
Promise< TData > | GetCurrent (string scope="") |
|
◆ SetScore()
Promise<Unit> Beamable.Common.Api.Events.IEventsApi.SetScore |
( |
string |
eventId, |
|
|
double |
score, |
|
|
bool |
incremental = false , |
|
|
IDictionary< string, object > |
stats = null |
|
) |
| |
Submit a score for the current player. Note that this is only allowed if the event has the write_self permission.
- Parameters
-
eventId | Full ID of the event, including timestamp suffix. |
score | The score to submit (or score delta if incremental). |
incremental | If incremental is true, add to the existing score, otherwise set it absolutely. |
stats | Optional key-value mapping of stats to apply to the score. |
- Returns
- Promise indicating success or failure.
Implemented in Beamable.Common.Api.Events.AbsEventsApi.
The documentation for this interface was generated from the following file:
- client/Packages/com.beamable/Common/Runtime/Api/Events/IEventsApi.cs