Skip to content

Support for GetAchievementAndUnlockTime #5

@Yanrishatum

Description

@Yanrishatum

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:

  1. 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? :) )
  2. getAchievementAndUnlockTime(id:String):{ achieved:Bool, unlockTime:Int }
    E.g. object/typedef with both values.
  3. Make both methods :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions