Sha256: f696eed5aef5735d143dace66e8c821e5882fedd976ccda1e77afe8aeafb5834
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
#pragma once #include "types.h" namespace discord { class AchievementManager final { public: ~AchievementManager() = default; void SetUserAchievement(Snowflake achievementId, std::uint8_t percentComplete, std::function<void(Result)> callback); void FetchUserAchievements(std::function<void(Result)> callback); void CountUserAchievements(std::int32_t* count); Result GetUserAchievement(Snowflake userAchievementId, UserAchievement* userAchievement); Result GetUserAchievementAt(std::int32_t index, UserAchievement* userAchievement); Event<UserAchievement const&> OnUserAchievementUpdate; private: friend class Core; AchievementManager() = default; AchievementManager(AchievementManager const& rhs) = delete; AchievementManager& operator=(AchievementManager const& rhs) = delete; AchievementManager(AchievementManager&& rhs) = delete; AchievementManager& operator=(AchievementManager&& rhs) = delete; IDiscordAchievementManager* internal_; static IDiscordAchievementEvents events_; }; } // namespace discord
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdiscord_sdk-1.1.1 | third-party/include/achievement_manager.h |
rdiscord_sdk-1.1.0 | third-party/include/achievement_manager.h |