Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
JoshuaKaden
committed
Aug 4, 2015
1 parent
816fcb2
commit 8ca1de1
Showing
23 changed files
with
1,234 additions
and
1,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Partisans/Classes/Libraries/My Library/JSKCommandMessageProtocol.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
// | |||
// JSKCommandMessageProtocol.h | |||
// Partisans | |||
// | |||
// Created by Joshua Kaden on 8/3/15. | |||
// Copyright © 2015 Chadford Software. All rights reserved. | |||
// | |||
|
|||
#import <Foundation/Foundation.h> | |||
|
|||
@protocol JSKCommandMessageProtocol <NSObject> | |||
@property (nonatomic, strong) NSString *from; | |||
@property (nonatomic, strong) NSString *responseKey; | |||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
// | |||
// NetHandler.h | |||
// Partisans | |||
// | |||
// Created by Joshua Kaden on 8/4/15. | |||
// Copyright © 2015 Chadford Software. All rights reserved. | |||
// | |||
|
|||
#import <Foundation/Foundation.h> | |||
|
|||
@class JSKCommandParcel; | |||
@class GameEnvoy; | |||
@class PlayerEnvoy; | |||
|
|||
@interface NetHandler : NSObject | |||
|
|||
@property (nonatomic, readonly) GameEnvoy *gameEnvoy; | |||
@property (nonatomic, readonly) NSString *myPeerID; | |||
@property (nonatomic, readonly) PlayerEnvoy *playerEnvoy; | |||
|
|||
- (void)sendDigestTo:(NSString *)toPeerID; | |||
|
|||
/** This will check the local data and ask for new data as needed. */ | |||
- (void)processDigest:(NSDictionary *)digest; | |||
|
|||
- (void)handlePlayerUpdate:(JSKCommandParcel *)parcel; | |||
|
|||
@end |
Oops, something went wrong.