import Cocoa
-class HMAnchorageRepairManager: NSObject {
+class HMAnchorageRepairManager {
static let `default`: HMAnchorageRepairManager = HMAnchorageRepairManager()
private let fleetManager: HMFleetManager
}
private let repairShipTypeIds: [Int] = [19]
- override init() {
+ init() {
let appDelegate = NSApplication.shared().delegate as! HMAppDelegate
- fleetManager = appDelegate.fleetManager
- super.init()
-
+ fleetManager = appDelegate.fleetManager
let nc = NotificationCenter.default
nc.addObserver(forName: .HenseiDidChange, object: nil, queue: nil) { notification in
guard let userInfo = notification.userInfo,
import Cocoa
-class HMHistoryItemCleaner: NSObject {
+class HMHistoryItemCleaner {
func cleanOldHistoryItems() {
guard UserDefaults.standard.cleanOldHistoryItems else {
return
import Cocoa
-class HMJSONTracker: NSObject {
+class HMJSONTracker {
private let queue: HMQueue
private let reciever: HMJSONReciever
- override init() {
+ init() {
queue = HMQueue()
reciever = HMJSONReciever(queue: queue)
- super.init()
start()
}
deinit {