Adds implementation of Ability model.
This commit is contained in:
		| @@ -12,6 +12,11 @@ NS_ASSUME_NONNULL_BEGIN | ||||
|  | ||||
| @interface Ability : NSObject | ||||
|  | ||||
| @property NSString* name; | ||||
| @property NSString* abilityDescription; | ||||
|  | ||||
| -(id)initWithName: (NSString*)name andDescription: (NSString*)description; | ||||
|  | ||||
| @end | ||||
|  | ||||
| NS_ASSUME_NONNULL_END | ||||
|   | ||||
| @@ -10,4 +10,13 @@ | ||||
|  | ||||
| @implementation Ability | ||||
|  | ||||
| -(id)initWithName: (NSString*)name andDescription: (NSString*)description { | ||||
|     self = [super init]; | ||||
|      | ||||
|     self.name = name; | ||||
|     self.abilityDescription = description; | ||||
|      | ||||
|     return self; | ||||
| } | ||||
|  | ||||
| @end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user