AchievementDef beta
Interface of @v12-engine/client
ts
export interface AchievementDefSomething a player can earn in a game (defineAchievements)
Members
description
ts
description?: string;What the player must do to earn it, shown under the name; none when left out
icon
ts
icon?: string;Its picture, by an icon's name or a URL
id
ts
id: string;The achievement's id, by which a profile records that it was earned
name
ts
name: string;The achievement's name shown in the profile and when it is earned
when
ts
when: AchievementCondition;The condition that earns it, checked as objectives change and when the game ends