Guest User

Untitled

a guest
May 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #import "MCWorld.h"
  2.  
  3.  
  4. @implementation MCWorld
  5.  
  6. @synthesize data;
  7. @synthesize properties;
  8. @synthesize players;
  9.  
  10. -(MCWorld*)initWithFileType:(NSString *)type andPath:(NSString *)path {
  11. if (self = [super init]) {
  12. if (type != nil) {
  13. // File-type Specific initialization details:
  14. }
  15. // Non-specific initialization details:
  16. properties = [[NSMutableDictionary alloc] init];
  17. players = [[NSMutableArray alloc] init];
  18. }
  19. return self;
  20. }
  21.  
  22. -(void)dealloc{
  23. NSLog(@"Dealocating world...");
  24.  
  25. [data release];
  26. [properties release];
  27. [players release];
  28.  
  29. [super dealloc];
  30. }
  31.  
  32. @end
Add Comment
Please, Sign In to add comment