|
ReXGlue SDK
|
Public Member Functions | |
| virtual Result< void > | RegisterAchievement (Achievement info)=0 |
| virtual Result< void > | RegisterAchievements (std::span< const Achievement > achievements)=0 |
| virtual void | ReplaceAchievements (std::vector< Achievement > achievements)=0 |
| virtual Result< void > | LoadMetadataFile (const std::filesystem::path &path)=0 |
| virtual std::vector< Achievement > | ListAchievements () const =0 |
| virtual AchievementUnlockResult | UnlockAchievement (u32 id, AchievementNotification notification=AchievementNotification::kSuppress)=0 |
| virtual bool | IsUnlocked (u32 id) const =0 |
| virtual std::optional< u64 > | GetUnlockTime (u32 id) const =0 |
| virtual ScopeGuard | RegisterNotificationCallback (AchievementCallback callback)=0 |
| virtual void | SetUnlockSavePath (std::filesystem::path path)=0 |
| virtual void | LoadUnlockState ()=0 |
| virtual void | LoadUnlockStateFrom (const std::filesystem::path &user_root, u32 title_id)=0 |
| virtual void | SaveUnlockState () const =0 |
Additional Inherited Members | |
| Protected Member Functions inherited from rex::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
|
nodiscardpure virtual |
Returns when an achievement was unlocked, empty when it is locked.
|
nodiscardpure virtual |
Lists the catalog.
|
nodiscardpure virtual |
Loads and merges the achievement entries of a TOML file.
|
pure virtual |
Sets the save path of a title under a user data root and reads the unlocks from it.
|
nodiscardpure virtual |
Adds an achievement or replaces the one with the same ID.
|
nodiscardpure virtual |
Adds or replaces several achievements, all or none.
| achievements | The entries to add or replace. |
|
nodiscardpure virtual |
Registers a callback for every notification.
| callback | The function that receives each notification. |
|
pure virtual |
Replaces the whole catalog.
| achievements | The entries that replace the catalog. |
|
pure virtual |
Unlocks an achievement and persists the unlock.
| notification | kShow to raise the notification callbacks too. |