//
//  RegisteredEca.swift
//  Sailassist
//
//  Created by 三浦薫巳 on 2023/10/27.
//

import Foundation
import CoreLocation

struct RegisteredEca {
    var id: UInt32 = 0
    var isEnable: Bool = false      //ECA有効
    var isRunning: Bool = false     //ECA実行中
    var name: String = ""           //ECA名称
    var swNotice: Float = 6        //ECA通知[NM]
    var swStart: Float = 5         //ECA開始[NM]
    var swFinish: Float = 4        //ECA終了[NM]
    var datetime: String = ""       //時刻（UTC ISO8601準拠）
    var color: String = ""          //ライン色（ARGB）
    var width: UInt32 = 1           //ライン幅
    var points: [CLLocationCoordinate2D] = []

    init?( ecaName: String ) {
        self.name = ecaName
    }
}
