exportAchievementData
exportAchievementData(
metrics,unlocked,configHash?):string
Defined in: node_modules/achievements-engine/dist/index.d.ts:594
Exports achievement data to a JSON string
Parameters
metrics
AchievementMetrics
Current achievement metrics
unlocked
string[]
Array of unlocked achievement IDs
configHash?
string
Optional hash of achievement configuration for validation
Returns
string
JSON string containing all achievement data
Example
const json = exportAchievementData(_metrics, ['score_100', 'level_5']);
// Save json to file or send to server