-
Notifications
You must be signed in to change notification settings - Fork 52
Support for GetAchievementAndUnlockTime #5
Copy link
Copy link
Open
Description
This method takes two pointers, bool with unlocked state and uint32 with unlock time in unix timestamp.
This issue is more about how to format it for Haxe code, I can implement it and make a pull request myself.
Unlock time may be 0, even if achievement already unlocked (if it was unlocked before December 2009).
So there a several ways:
getAchievementUnlockTime(id:String):Int
Will return 0 if achievement is not unlocked, and non-zero value otherwise. This will automatically cease the support for 2009< achievements, but I think this is not very bad in current case. (We're not making some sort of achievement unlocker, yes? :) )getAchievementAndUnlockTime(id:String):{ achieved:Bool, unlockTime:Int }
E.g. object/typedef with both values.- Make both methods :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels