| 1234567891011121314151617181920 |
- interface GameSDKResult {
- ok: true
- rank: number
- }
- interface GameSDKError {
- ok: false
- error: string
- }
- interface IGameSDK {
- /** This game's id string */
- gameId: string
- /** Current player's display name */
- getPlayerName(): string
- /** Submit a score. Returns rank on success. */
- submit(score: number): Promise<GameSDKResult | GameSDKError>
- }
- declare const GameSDK: IGameSDK
|