Trophies API methods
More...
|
static void | Unlock (Trophy trophy, Action< bool > callback=null) |
| Unlock the specified Trophy. More...
|
|
static void | Unlock (int id, Action< bool > callback=null) |
| Unlock the specified Trophy by its id. More...
|
|
static void | TryUnlock (Trophy trophy, Action< TryUnlockResult > callback=null) |
| Unlocks the trophy if it was not already unlocked. More...
|
|
static void | TryUnlock (int id, Action< TryUnlockResult > callback=null) |
| Unlocks the trophy if it was not already unlocked. More...
|
|
static void | Get (int id, Action< Trophy > callback) |
| Get a Trophy by id . More...
|
|
static void | Get (int[] ids, Action< Trophy[]> callback) |
| Get the Trophys by id. More...
|
|
static void | Get (Action< Trophy[]> callback) |
| Get the Trophys information. More...
|
|
static void | Get (bool unlocked, Action< Trophy[]> callback) |
| Get all locked/unlocked Trophys. More...
|
|
static void | Remove (Trophy trophy, Action< bool > callback=null) |
| Removes the trophy. More...
|
|
static void | Remove (int id, Action< bool > callback=null) |
| Removes the trophy. More...
|
|
◆ Get() [1/4]
static void GameJolt.API.Trophies.Get |
( |
int |
id, |
|
|
Action< Trophy > |
callback |
|
) |
| |
|
inlinestatic |
Get a Trophy by id
.
- Parameters
-
id | The Trophy id . |
callback | A callback function accepting a single parameter, a Trophy. |
◆ Get() [2/4]
static void GameJolt.API.Trophies.Get |
( |
int [] |
ids, |
|
|
Action< Trophy[]> |
callback |
|
) |
| |
|
inlinestatic |
Get the Trophys by id.
- Parameters
-
ids | An array of Trophys IDs |
callback | A callback function accepting a single parameter, an array of Trophys. |
◆ Get() [3/4]
static void GameJolt.API.Trophies.Get |
( |
Action< Trophy[]> |
callback | ) |
|
|
inlinestatic |
Get the Trophys information.
- Parameters
-
callback | A callback function accepting a single parameter, an array of Trophys. |
◆ Get() [4/4]
static void GameJolt.API.Trophies.Get |
( |
bool |
unlocked, |
|
|
Action< Trophy[]> |
callback |
|
) |
| |
|
inlinestatic |
Get all locked/unlocked Trophys.
- Parameters
-
unlocked | A boolean indicating whether to retrieve unlocked (true ) or locked (false ) Trophys. |
callback | A callback function accepting a single parameter, an array of Trophys. |
◆ Remove() [1/2]
static void GameJolt.API.Trophies.Remove |
( |
Trophy |
trophy, |
|
|
Action< bool > |
callback = null |
|
) |
| |
|
inlinestatic |
Removes the trophy.
- Parameters
-
trophy | The trophy to lock again. |
callback | A callback function accepting a single parameter, a boolean indicating the success of this function. |
◆ Remove() [2/2]
static void GameJolt.API.Trophies.Remove |
( |
int |
id, |
|
|
Action< bool > |
callback = null |
|
) |
| |
|
inlinestatic |
Removes the trophy.
- Parameters
-
id | The trophy id to lock again. |
callback | A callback function accepting a single parameter, a boolean indicating the success of this function. |
◆ TryUnlock() [1/2]
Unlocks the trophy if it was not already unlocked.
- Parameters
-
trophy | The Trophy to unlock. |
callback | A callback function accepting a single parameter, an enum indicating success. |
◆ TryUnlock() [2/2]
static void GameJolt.API.Trophies.TryUnlock |
( |
int |
id, |
|
|
Action< TryUnlockResult > |
callback = null |
|
) |
| |
|
inlinestatic |
Unlocks the trophy if it was not already unlocked.
- Parameters
-
trophy | The Trophy ID. |
callback | A callback function accepting a single parameter, an enum indicating success. |
◆ Unlock() [1/2]
static void GameJolt.API.Trophies.Unlock |
( |
Trophy |
trophy, |
|
|
Action< bool > |
callback = null |
|
) |
| |
|
inlinestatic |
Unlock the specified Trophy.
- Parameters
-
trophy | The Trophy to unlock. |
callback | A callback function accepting a single parameter, a boolean indicating success. |
◆ Unlock() [2/2]
static void GameJolt.API.Trophies.Unlock |
( |
int |
id, |
|
|
Action< bool > |
callback = null |
|
) |
| |
|
inlinestatic |
Unlock the specified Trophy by its id.
- Parameters
-
id | The Trophy ID. |
callback | A callback function accepting a single parameter, a boolean indicating success. |
The documentation for this class was generated from the following file:
- D:/Dev/Unity/AssetStore/GameJoltAPI/Assets/Plugins/GameJolt/Scripts/API/Trophies.cs