- Creating separate files for different Items

This commit is contained in:
Manali Mogre 2020-08-16 14:25:03 +02:00
parent 0830292975
commit f19d8141a4
5 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,19 @@
//
// File.swift
//
//
// Created by Manali Mogre on 16/08/2020.
//
import Foundation
struct AgedBrieItem: CustomisedItemProtocol {
var item: Item
public init(item: Item) {
self.item = item
}
func updateCustomItemQuality() {
}
}

View File

@ -0,0 +1,19 @@
//
// File.swift
//
//
// Created by Manali Mogre on 16/08/2020.
//
import Foundation
struct BackstagePassesItem: CustomisedItemProtocol {
var item: Item
public init(item: Item) {
self.item = item
}
func updateCustomItemQuality() {
}
}

View File

@ -0,0 +1,14 @@
//
// File.swift
//
//
// Created by Manali Mogre on 16/08/2020.
//
import Foundation
protocol CustomisedItemProtocol {
func updateCustomItemQuality()
}

View File

@ -0,0 +1,20 @@
//
// File.swift
//
//
// Created by Manali Mogre on 16/08/2020.
//
import Foundation
struct StandardItem: CustomisedItemProtocol {
var item: Item
public init(item: Item) {
self.item = item
}
func updateCustomItemQuality() {
}
}

View File

@ -0,0 +1,19 @@
//
// File.swift
//
//
// Created by Manali Mogre on 16/08/2020.
//
import Foundation
struct SulfurasItem: CustomisedItemProtocol {
var item: Item
public init(item: Item) {
self.item = item
}
func updateCustomItemQuality() {
}
}