X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Target.h;h=df3535b7176b8c35973f008b5e6d07a4e536268f;hp=e1d1ff7b3d15c4d6896d4c3a039b0a631119f008;hb=19f40be5b645e44ffb55bdce0b6cc5c5615f68e7;hpb=c6fb77859e508aaef686b7a5a6a12abe29178708 diff --git a/Target.h b/Target.h index e1d1ff7..df3535b 100644 --- a/Target.h +++ b/Target.h @@ -10,14 +10,17 @@ @interface Target : NSObject -@property (assign) float magnitude; -@property (assign) BOOL running; -@property (readonly) BOOL isContinuous; +@property (nonatomic, assign) float magnitude; +@property (nonatomic, assign) BOOL running; +@property (nonatomic, readonly) BOOL isContinuous; - (void)trigger; - (void)untrigger; - (BOOL)update:(JoystickController *)jc; -- (NSString*) stringify; -+ (Target *)unstringify:(NSString*)str withConfigList:(NSArray*)configs; + +- (NSDictionary *)serialize; ++ (Target *)targetDeserialize:(NSDictionary *)serialization + withConfigs:(NSArray *)configs; ++ (NSString *)serializationCode; @end