Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AchievementDefinition

import type { AchievementDefinition } from "https://googleapis.deno.dev/v1/games:v1.ts";

An achievement definition object.

interface AchievementDefinition {
achievementType?: "STANDARD" | "INCREMENTAL";
description?: string;
experiencePoints?: bigint;
formattedTotalSteps?: string;
id?: string;
initialState?: "HIDDEN" | "REVEALED" | "UNLOCKED";
isRevealedIconUrlDefault?: boolean;
isUnlockedIconUrlDefault?: boolean;
kind?: string;
name?: string;
revealedIconUrl?: string;
totalSteps?: number;
unlockedIconUrl?: string;
}

§Properties

§
achievementType?: "STANDARD" | "INCREMENTAL"
[src]

The type of the achievement.

§
description?: string
[src]

The description of the achievement.

§
experiencePoints?: bigint
[src]

Experience points which will be earned when unlocking this achievement.

§
formattedTotalSteps?: string
[src]

The total steps for an incremental achievement as a string.

§
id?: string
[src]

The ID of the achievement.

§
initialState?: "HIDDEN" | "REVEALED" | "UNLOCKED"
[src]

The initial state of the achievement.

§
isRevealedIconUrlDefault?: boolean
[src]

Indicates whether the revealed icon image being returned is a default image, or is provided by the game.

§
isUnlockedIconUrlDefault?: boolean
[src]

Indicates whether the unlocked icon image being returned is a default image, or is game-provided.

§
kind?: string
[src]

Uniquely identifies the type of this resource. Value is always the fixed string games#achievementDefinition.

§
name?: string
[src]

The name of the achievement.

§
revealedIconUrl?: string
[src]

The image URL for the revealed achievement icon.

§
totalSteps?: number
[src]

The total steps for an incremental achievement.

§
unlockedIconUrl?: string
[src]

The image URL for the unlocked achievement icon.