X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJOutput.h;fp=Classes%2FNJOutput.h;h=b82c4e78dbe4db8318213f785828ca0c29d83795;hp=0000000000000000000000000000000000000000;hb=0064c1fbff36795885a9724081af2a17d83c20a3;hpb=56d825ba259066d847a9fc3f9c8c0c0a362a1507 diff --git a/Classes/NJOutput.h b/Classes/NJOutput.h new file mode 100644 index 0000000..b82c4e7 --- /dev/null +++ b/Classes/NJOutput.h @@ -0,0 +1,26 @@ +// +// NJOutput.h +// Enjoy +// +// Created by Sam McCall on 5/05/09. +// Copyright 2009 University of Otago. All rights reserved. +// + +@class NJDeviceController; + +@interface NJOutput : NSObject + +@property (nonatomic, assign) float magnitude; +@property (nonatomic, assign) BOOL running; +@property (nonatomic, readonly) BOOL isContinuous; + +- (void)trigger; +- (void)untrigger; +- (BOOL)update:(NJDeviceController *)jc; + +- (NSDictionary *)serialize; ++ (NJOutput *)outputDeserialize:(NSDictionary *)serialization + withMappings:(NSArray *)mappings; ++ (NSString *)serializationCode; + +@end