mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
26 lines
680 B
C
26 lines
680 B
C
![]() |
#import <UIKit/UIKit.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@protocol SaveStateDelegate
|
||
|
- (void) saveStateUsingPosition:(uint32_t)position;
|
||
|
- (void) loadStateUsingPosition:(uint32_t)position;
|
||
|
@end
|
||
|
|
||
|
typedef NS_ENUM(NSInteger, SaveStateAction) {
|
||
|
SaveStateActionSave,
|
||
|
SaveStateActionLoad
|
||
|
};
|
||
|
|
||
|
@interface SaveStateViewController : UIViewController
|
||
|
@property(nonatomic, weak) id<SaveStateDelegate> delegate;
|
||
|
@property(nonatomic, assign) SaveStateAction action;
|
||
|
|
||
|
@property (retain, nonatomic) IBOutlet UILabel *label;
|
||
|
@property (retain, nonatomic) IBOutlet UISegmentedControl *saveSlotSegmentedControl;
|
||
|
@property (retain, nonatomic) IBOutlet UIButton *button;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|