Type Table Library gamecircle.* Revision Release 2024.3703 Keywords achievement, return, value, table
Table that encapulates the error values and return values from the [GetAchievements][plugin.gamecircleAchievement.GetAchievements] function.
local achievementID = "myFirstAchievement" local gamecircle = require("plugin.gamecircle") gamecircle.Init(true, false, false) function AchievementCallback(returnValue) if returnValue.isError == true then print("Get Achievement request returned with error message: " .. returnValue.errorMessage) else print("Achievement information recieved!") for i, achievement in ipairs(returnValue) do print("-Achievement # " .. i) print("--id: " .. achievement.id) print("--title: " .. achievement.title) print("--desc: " .. achievement.desc) print("--isUnlocked: " .. achievement.isUnlocked) print("--unlockedDate: " .. achievement.unlockDate) print("--imageURL: " .. achievement.imageURL) print("--isHidden: " .. achievement.isHidden) print("--pointValue: " .. achievement.pointValue) print("--position: " .. achievement.position) print("--progress: " .. achievement.progress) end end end gamecircle.Achievement.GetAchievements(achievementID, AchievementCallback)