Files
luma/Sources/LumaCore/Patterns/PatternPlacement.swift
Ole André Vadla Ravnås 3f70d259d3 core: Persist pattern placements
Store them with the REPL cell and the address insight, as a JSON
column each, and bind the decode view to them. Older rows and wire
cells without the field decode as none.
2026-10-01 20:49:11 +02:00

23 lines
577 B
Swift

import Foundation
public struct PatternPlacement: Codable, Identifiable, Hashable, Sendable {
public var id: UUID
public var sourceID: String
public var typeName: String
public var offset: Int
enum CodingKeys: String, CodingKey {
case id
case sourceID = "source_id"
case typeName = "type_name"
case offset
}
public init(id: UUID = UUID(), sourceID: String, typeName: String, offset: Int) {
self.id = id
self.sourceID = sourceID
self.typeName = typeName
self.offset = offset
}
}