Type Table Library gamecircle.* Revision Release 2024.3703 Keywords achievement, return, value, table
Table that encapulates the error values and return value from the GetAchievement 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 local achievement = returnValue.achievement print("Achievement information recieved!") 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 gamecircle.GetAchievement(achievementID, AchievementCallback)