| 1234567891011121314151617181920 |
- /**
- * Game Platform SDK
- *
- * window.GameSDK is injected by the platform before your bundle loads.
- * Call it as a global — no import needed.
- *
- * This package also ships a CLI for publishing:
- * game-sdk publish --game-id my-game --name "My Game" --bundle ./bundle.js
- *
- * const result = await GameSDK.submit(100)
- * // { ok: true, rank: 3 }
- *
- * For TypeScript projects, copy game-sdk.d.ts into your source tree (or
- * reference it in tsconfig) to get type checking and autocomplete.
- *
- * API:
- * GameSDK.gameId — string
- * GameSDK.getPlayerName() — string
- * GameSDK.submit(score) — Promise<{ ok: true, rank } | { ok: false, error }>
- */
|