2011-02-01 15:47:13 +00:00
|
|
|
//
|
|
|
|
// Guide.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 7.12.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <GameKit/GameKit.h>
|
|
|
|
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
2011-03-29 15:00:49 +00:00
|
|
|
#import "Retronator.Xni.Framework.GamerServices.classes.h"
|
|
|
|
#import "System.h"
|
2011-02-01 15:47:13 +00:00
|
|
|
|
2011-02-15 16:10:02 +00:00
|
|
|
@interface Guide : NSObject <GKAchievementViewControllerDelegate, GKLeaderboardViewControllerDelegate> {
|
2011-02-01 15:47:13 +00:00
|
|
|
Game *game;
|
|
|
|
BOOL isVisible;
|
2011-03-29 15:00:49 +00:00
|
|
|
NotificationPosition notificationPosition;
|
|
|
|
|
|
|
|
NSMutableSet *messageBoxResults;
|
2011-02-01 15:47:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic) BOOL isVisible;
|
2011-03-29 15:00:49 +00:00
|
|
|
@property (nonatomic) NotificationPosition notificationPosition;
|
2011-02-01 15:47:13 +00:00
|
|
|
|
|
|
|
+ (void) showAchievements;
|
|
|
|
+ (void) showLeaderboard;
|
2011-03-29 15:00:49 +00:00
|
|
|
+ (id<IAsyncResult>) beginShowMessageBoxWithTitle:(NSString*)title text:(NSString*)text buttons:(NSArray*)buttons focusButton:(int)focusButton
|
|
|
|
icon:(MessageBoxIcon)icon callback:(Delegate*)callback state:(id)state;
|
|
|
|
+ (NSNumber *) endShowMessageBox:(id<IAsyncResult>)result;
|
2011-02-01 15:47:13 +00:00
|
|
|
|
|
|
|
+ (Guide*) getInstance;
|
|
|
|
|
|
|
|
- (void) showAchievements;
|
|
|
|
- (void) showLeaderboard;
|
2011-03-29 15:00:49 +00:00
|
|
|
- (id<IAsyncResult>) beginShowMessageBoxWithTitle:(NSString*)title text:(NSString*)text buttons:(NSArray*)buttons focusButton:(int)focusButton
|
|
|
|
icon:(MessageBoxIcon)icon callback:(Delegate*)callback state:(id)state;
|
|
|
|
- (NSNumber *) endShowMessageBox:(id<IAsyncResult>)result;
|
2011-02-01 15:47:13 +00:00
|
|
|
|
|
|
|
@end
|