Adds implementation of DamageType model.

This commit is contained in:
2020-09-05 18:19:32 -07:00
parent fbbecce6e6
commit e98443a5dd
2 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,12 @@ NS_ASSUME_NONNULL_BEGIN
@interface DamageType : NSObject @interface DamageType : NSObject
@property NSString* name;
@property NSString* note;
@property NSString* type;
-(id)initWithName: (NSString*)name note: (NSString*)note andType: (NSString*)type;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@@ -10,4 +10,14 @@
@implementation DamageType @implementation DamageType
-(id)initWithName: (NSString*)name note: (NSString*)note andType: (NSString*)type{
self = [super init];
self.name = name;
self.note = note;
self.type = type;
return self;
}
@end @end