X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Config.m;fp=Config.m;h=a02c4ce55171ee20ca66a974162c8e733cfd1a08;hp=5a83ed30461deed4a4bfd44d4b6a993140571fa5;hb=9584becb2e5469e8f482d73e6f0c9c3bf879e0db;hpb=5de694150d275d27119d344cbb1d61bc31d75268 diff --git a/Config.m b/Config.m index 5a83ed3..a02c4ce 100644 --- a/Config.m +++ b/Config.m @@ -32,4 +32,11 @@ } } +- (NSDictionary *)serialize { + NSMutableDictionary* cfgEntries = [[NSMutableDictionary alloc] initWithCapacity:_entries.count]; + for (id key in _entries) + cfgEntries[key] = [_entries[key] serialize]; + return @{ @"name": _name, @"entries": cfgEntries }; +} + @end