/// <summary> /// Reports the score to game service server. /// </summary> /// <param name="_leaderboardGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Leaderboard"/> across all supported platforms.</param> /// <param name="_score">The score earned by <see cref="VoxelBusters.NativePlugins.LocalUser"/></param> /// <param name="_onCompletion">Callback to be called when operation is completed.</param> public void ReportScoreWithGlobalID(string _leaderboardGID, long _score, Score.ReportScoreCompletion _onCompletion) { string _leaderboardID = GameServicesIDHandler.GetLeaderboardID(_leaderboardGID); // Invoke handler ReportScore(_leaderboardGID, _leaderboardID, _score, _onCompletion); }
/// <summary> /// Reports the player’s progress for given <see cref="VoxelBusters.NativePlugins.Achievement"/> identifier. /// </summary> /// <param name="_achievementGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Achievement"/> across all supported platforms.</param> /// <param name="_pointsScored">Value indicates how far the player has progressed.</param> /// <param name="_onCompletion">Callback to be called when operation is completed.</param> public void ReportProgressWithGlobalID(string _achievementGID, int _pointsScored, Achievement.ReportProgressCompletion _onCompletion) { string _achievementID = GameServicesIDHandler.GetAchievementID(_achievementGID); // Invoke handler ReportProgress(_achievementGID, _achievementID, _pointsScored, _onCompletion); }
/// <summary> /// Creates an instance of <see cref="VoxelBusters.NativePlugins.Leaderboard"/>. /// </summary> /// <returns>An initialized <see cref="VoxelBusters.NativePlugins.Leaderboard"/> instance.</returns> /// <param name="_leaderboardGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Leaderboard"/> across all supported platforms.</param> public Leaderboard CreateLeaderboardWithGlobalID(string _leaderboardGID) { string _leaderboardID = GameServicesIDHandler.GetLeaderboardID(_leaderboardGID); return(CreateLeaderboard(_leaderboardGID, _leaderboardID)); }
/// <summary> /// Sets the leaderboard identifier information of all the targetted platforms. /// </summary> /// <param name="_newCollection">The list of identifiers information of all the targetted platforms.</param> public void SetLeaderboardIDCollection(params IDContainer[] _newCollection) { GameServicesIDHandler.SetLeaderboardIDCollection(_newCollection); }
/// <summary> /// Show the leaderboard UI with a specific time scope. /// </summary> /// <param name="_leaderboardGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Leaderboard"/> across all supported platforms.</param> /// <param name="_timeScope">Time scope initially used while showing leaderboard UI.</param> /// <param name="_onCompletion">Callback called when Leaderboard view is closed.</param> public void ShowLeaderboardUIWithGlobalID(string _leaderboardGID, eLeaderboardTimeScope _timeScope, GameServiceViewClosed _onCompletion) { string _leaderboardID = GameServicesIDHandler.GetLeaderboardID(_leaderboardGID); ShowLeaderboardUIWithID(_leaderboardID, _timeScope, _onCompletion); }
/// <summary> /// Creates an instance of <see cref="VoxelBusters.NativePlugins.Achievement"/>. /// </summary> /// <returns>An initialized <see cref="VoxelBusters.NativePlugins.Achievement"/> instance.</returns> /// <param name="_achievementGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Achievement"/> across all supported platforms.</param> public Achievement CreateAchievementWithGlobalID(string _achievementGID) { string _achievementID = GameServicesIDHandler.GetAchievementID(_achievementGID); return(CreateAchievement(_achievementGID, _achievementID)); }
/// Sets the achievement identifier information of all the targetted platforms. /// </summary> /// <param name="_newCollection">The list of identifiers information of all the targetted platforms.</param> public void SetAchievementIDCollection(params IDContainer[] _newCollection) { GameServicesIDHandler.SetAchievementIDCollection(_newCollection); }