ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
toy::game Namespace Reference

Game types and utilities: achievement state and related APIs. More...

Enumerations

enum class  AchievementState : uint8_t { Hidden , Locked , Unlocked }
 State of an achievement: visibility and whether it is unlocked. More...

Detailed Description

Game types and utilities: achievement state and related APIs.

Enumeration Type Documentation

◆ AchievementState

enum class toy::game::AchievementState : uint8_t
strong

State of an achievement: visibility and whether it is unlocked.

Used to drive UI (e.g. show, grey out, or hide) and logic (e.g. grant rewards only when Unlocked).

Enumerator
Hidden 

Achievement is not shown to the user (e.g. secret or not yet available).

Locked 

Achievement is visible but not yet earned.

Unlocked 

Achievement has been earned.