Skip to content
On this page

GameModeData (Interface)

The GameModeData interface describes a game mode or score category for a game.

Fields

FieldTypeDescription
gamestringThe id of the game.
namestringThe name of the game mode or category.
level_keystringKey identifying the level or mode.
value_type'time' | 'score'Type of value tracked (time or score).
value_namestringName of the value tracked (e.g., "Points").
reversebooleanIf true, lower values are better (e.g., time).
ordernumberOrder or ranking of the mode/category.

Usage

Used to define and retrieve game modes and score categories for leaderboards.