|
| PlayerStats (IPlatformService platform, IUserContext userContext, StatsService statService, ISdkEventService eventService, CoroutineService coroutineService) |
|
Promise | Set (string key, string value) |
| Set the value of a PlayerStat. If multiple calls to this method are issued per frame, all set operations will be baked into one network operation. More...
|
|
Promise | OnDispose () |
| Used as a way to allow services attached to a IDependencyProvider to clean up their state when the IDependencyProviderScope.Dispose method is called More...
|
|
IEnumerator< KeyValuePair< string, TValue > > | GetEnumerator () |
|
bool | ContainsKey (string key) |
|
bool | TryGetValue (string key, out TValue value) |
|
override int | GetBroadcastChecksum () |
| The broadcast checksum is a concept for change-detection. More...
|
|
|
override async Promise | PerformRefresh () |
|
void | SetData (TDict nextData) |
|
|
int | Count [get] |
|
TValue | this[string key] [get] |
|
IEnumerable< string > | Keys [get] |
|
IEnumerable< TValue > | Values [get] |
|
bool | IsInitialized [getprotected set] |
|
Action< SerializableDictionaryStringToSomething< TValue > > | OnDataUpdated |
| An event that happens right after IObservable.OnUpdated, but this one contains the dictionary of internal data.
|
|
◆ OnDispose()
Promise Beamable.Player.PlayerStats.OnDispose |
( |
| ) |
|
|
inline |
Used as a way to allow services attached to a IDependencyProvider to clean up their state when the IDependencyProviderScope.Dispose method is called
- Returns
- A promise that represents when the service's clean up is complete. This promise will hang the entire disposal process of the IDependencyProviderScope
Implements Beamable.Common.Dependencies.IBeamableDisposable.
◆ Set()
Promise Beamable.Player.PlayerStats.Set |
( |
string |
key, |
|
|
string |
value |
|
) |
| |
|
inline |
Set the value of a PlayerStat. If multiple calls to this method are issued per frame, all set operations will be baked into one network operation.
- Parameters
-
key | The stat key |
value | The desired stat value. This will override the existing value. |
- Returns
- A Promise representing the work. The promise won't complete until the set is complete.
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Player/PlayerStats.cs