X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Config.m;fp=Config.m;h=de3c1cc970c278ed428591054175f3acd89815f6;hp=0000000000000000000000000000000000000000;hb=530009447c5bbd360ac5023979cffc6d32a28df3;hpb=5f07baa8cb03a2f6aa06338bfeb31dad3c3ca29f diff --git a/Config.m b/Config.m new file mode 100644 index 0000000..de3c1cc --- /dev/null +++ b/Config.m @@ -0,0 +1,26 @@ +// +// Config.m +// Enjoy +// +// Created by Sam McCall on 4/05/09. +// + +@implementation Config + +-(id) init { + if(self=[super init]) { + entries = [[NSMutableDictionary alloc] init]; + } + return self; +} + +@synthesize protect, name, entries; + +-(void) setTarget:(Target*)target forAction:(id)jsa { + [entries setValue:target forKey: [jsa stringify]]; +} +-(Target*) getTargetForAction: (id) jsa { + return [entries objectForKey: [jsa stringify]]; +} + +@end