Table of Contents

Class StatsService

public class StatsService : EOSService, IDisposable
Inheritance
StatsService
Implements
Inherited Members

Properties

Instance

Accessor for the instance.

public static StatsService Instance { get; }

Property Value

StatsService

Methods

~StatsService()

protected ~StatsService()

IngestStatAsync(string, int)

Ingest a given stat for the current player.

public Task IngestStatAsync(string statName, int ingestAmount)

Parameters

statName string

The stat name.

ingestAmount int

The amount to "ingest" for the stat.

Returns

Task

A task so that this function can be awaitable.

InternalRefreshAsync()

Implementation of this function should refresh the locally cached data managed by the service manager in question.

protected override Task InternalRefreshAsync()

Returns

Task

OnLoggedIn()

Implement this method to perform tasks when a user authenticates. By default, there is no action taken.

protected override void OnLoggedIn()

Reset()

This method clears all state for the service. If overridden in an implementing class, this base implementation should be called at the end of that implementation. Implementing classes probably should override this function.

protected override void Reset()