Skip to content

beamable-sdk / services / SetStatsParams

Interface: SetStatsParams

Defined in: src/services/StatsService.ts:28

Properties

accessType

accessType: "public" | "private"

Defined in: src/services/StatsService.ts:39

The type of access for the stats.

Remarks

'public' for public stats, 'private' for private stats.


domainType?

optional domainType: "client" | "game"

Defined in: src/services/StatsService.ts:34

The type of domain for the stats.

Remarks

'client' for client-side stats, 'game' for game server stats.

Default

'client'

emitAnalytics?

optional emitAnalytics: boolean

Defined in: src/services/StatsService.ts:46

Whether to emit analytics for the stats change.


stats

stats: Record<string, string>

Defined in: src/services/StatsService.ts:44

The stats to set for the current player.

Remarks

The keys are stat names and the values are their corresponding values as strings.