Skip to content

Commit

Permalink
Version 5.1
Browse files Browse the repository at this point in the history
iOS 7 Compatible, Method Updates, UI Cleanup, Bug Fixes, and more.
  • Loading branch information
iRare Media committed Oct 20, 2013
1 parent 3cc8d3f commit 23a5474
Show file tree
Hide file tree
Showing 87 changed files with 1,665 additions and 5,911 deletions.
Binary file modified [email protected]
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified GameCenterManager Mac/AppDelegateMac.h
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions GameCenterManager Mac/AppDelegateMac.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
}

//------------------------------------------------------------------------------------------------------------//
//Region: GameCenter Manager Delegate ------------------------------------------------------------------------//
//------- GameCenter Manager Delegate ------------------------------------------------------------------------//
//------------------------------------------------------------------------------------------------------------//
#pragma mark - GameCenter Manager Delegate

Expand Down Expand Up @@ -140,7 +140,7 @@ - (void)gameCenterViewControllerDidFinish:(GKGameCenterViewController *)gameCent
}

//------------------------------------------------------------------------------------------------------------//
//Region: GameCenter Scores ----------------------------------------------------------------------------------//
//------- GameCenter Scores ----------------------------------------------------------------------------------//
//------------------------------------------------------------------------------------------------------------//
#pragma mark - GameCenter Scores

Expand Down Expand Up @@ -168,7 +168,7 @@ - (void)leaderboardViewControllerDidFinish:(GKLeaderboardViewController *)viewCo
}

//------------------------------------------------------------------------------------------------------------//
//Region: GameCenter Achievements ----------------------------------------------------------------------------//
//------- GameCenter Achievements ----------------------------------------------------------------------------//
//------------------------------------------------------------------------------------------------------------//
#pragma mark - GameCenter Achievements

Expand Down Expand Up @@ -208,7 +208,7 @@ - (IBAction)resetAchievements:(id)sender {
}

//------------------------------------------------------------------------------------------------------------//
//Region: GameCenter Challenges ------------------------------------------------------------------------------//
//------- GameCenter Challenges ------------------------------------------------------------------------------//
//------------------------------------------------------------------------------------------------------------//
#pragma mark - GameCenter Challenges

Expand Down
30 changes: 15 additions & 15 deletions GameCenterManager Mac/GC Manager/GameCenterManager-Mac.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,37 @@ enum {
// Returns the shared instance of GameCenterManager.
+ (GameCenterManager *)sharedManager;

// Initializes Game Center Manager. Should be called at app launch.
/// Initializes Game Center Manager. Should be called at app launch.
- (void)initGameCenter;

// Synchronizes local player data with Game Center data.
/// Synchronizes local player data with Game Center data.
- (void)syncGameCenter;

// Saves score locally and reports it to Game Center. If error occurs, score is saved to be submitted later.
/// Saves score locally and reports it to Game Center. If error occurs, score is saved to be submitted later.
- (void)saveAndReportScore:(int)score leaderboard:(NSString *)identifier sortOrder:(GameCenterSortOrder)order;

// Saves achievement locally and reports it to Game Center. If error occurs, achievement is saved to be submitted later.
/// Saves achievement locally and reports it to Game Center. If error occurs, achievement is saved to be submitted later.
- (void)saveAndReportAchievement:(NSString *)identifier percentComplete:(double)percentComplete shouldDisplayNotification:(BOOL)displayNotification;

// Reports scores and achievements which could not be reported earlier.
/// Reports scores and achievements which could not be reported earlier.
- (void)reportSavedScoresAndAchievements;

// Saves score to be submitted later.
/// Saves score to be submitted later.
- (void)saveScoreToReportLater:(GKScore *)score;

// Saves achievement to be submitted later.
/// Saves achievement to be submitted later.
- (void)saveAchievementToReportLater:(NSString *)identifier percentComplete:(double)percentComplete;

// Returns local player's high score for specified leaderboard.
/// Returns local player's high score for specified leaderboard.
- (int)highScoreForLeaderboard:(NSString *)identifier;

// Returns local player's high scores for multiple leaderboards.
/// Returns local player's high scores for multiple leaderboards.
- (NSDictionary *)highScoreForLeaderboards:(NSArray *)identifiers;

// Returns local player's percent completed for specified achievement.
/// Returns local player's percent completed for specified achievement.
- (double)progressForAchievement:(NSString *)identifier;

// Returns local player's percent completed for multiple achievements.
/// Returns local player's percent completed for multiple achievements.
- (NSDictionary *)progressForAchievements:(NSArray *)identifiers;

/** Gets a list of challenges for the current player and game. If GameCenter is not available it will return nil and provide an error using the gameCenterManager:error: delegate method. Use the completion handler to get challenges.
Expand All @@ -82,7 +82,7 @@ enum {
/** Resets local player's achievements */
- (void)resetAchievements;

// Returns currently authenticated local player. If no player is authenticated, "unknownPlayer" is returned.
/// Returns currently authenticated local player. If no player is authenticated, "unknownPlayer" is returned.
- (NSString *)localPlayerId;
- (GKLocalPlayer *)localPlayerData;
- (void)localPlayerPhoto:(void (^)(NSImage *playerPhoto))handler;
Expand All @@ -92,16 +92,16 @@ enum {
*/
- (BOOL)isInternetAvailable;

// Check if GameCenter is supported
/// Check if GameCenter is supported
- (BOOL)checkGameCenterAvailability;

// Use this property to check if Game Center is available and supported on the current device.
/// Use this property to check if Game Center is available and supported on the current device.
@property (nonatomic, assign) BOOL isGameCenterAvailable;

@end


//GameCenterManager Mac Delegate
/// GameCenterManager Mac Delegate
@protocol GameCenterManagerDelegate <NSObject>
@optional
- (void)gameCenterManager:(GameCenterManager *)manager availabilityChanged:(NSDictionary *)availabilityInformation;
Expand Down
Loading

0 comments on commit 23a5474

Please sign in to comment.