Find
This function finds a new leaderboard. If the leaderboard does not already exist it will be created and returned.
Syntax
- static Leaderboard* Find(std::string name="Hiscore", const int type=Leaderboard::Numeric, const int sortmode=Leaderboard::Descending, const int entries=20)
Parameters
- name: the file path to load the scene from.
- type: the file path to load the scene from.
- sortmode: pointer to a function that will be called for each loaded entity in the scene.
- entries: script function name that will be called for each loaded entity in the scene.
Returns
Returns true if the scene was successfully loaded, otherwise false is returned.