From df7f36ea5ce07cf96112cb0c4bd0c158a441c1ee Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Thu, 21 Feb 2019 13:29:45 +0100 Subject: [PATCH] =?UTF-8?q?Add=20debug=20description=20&=20make=20sparse?= =?UTF-8?q?=20set=20arrays=20=C5=93usableFromInline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/FirebladeECS/Nexus.swift | 7 +++++++ Sources/FirebladeECS/UnorderedSparseSet.swift | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Sources/FirebladeECS/Nexus.swift b/Sources/FirebladeECS/Nexus.swift index 071632c..6518a8f 100644 --- a/Sources/FirebladeECS/Nexus.swift +++ b/Sources/FirebladeECS/Nexus.swift @@ -99,3 +99,10 @@ extension Nexus { delegate?.nexusRecoverableErrorOccurred(message) } } + +// MARK: - CustomDebugStringConvertible +extension Nexus: CustomDebugStringConvertible { + public var debugDescription: String { + return "Nexus" + } +} diff --git a/Sources/FirebladeECS/UnorderedSparseSet.swift b/Sources/FirebladeECS/UnorderedSparseSet.swift index cab51eb..d7bbca0 100644 --- a/Sources/FirebladeECS/UnorderedSparseSet.swift +++ b/Sources/FirebladeECS/UnorderedSparseSet.swift @@ -14,8 +14,8 @@ open class UnorderedSparseSet: MutableCollection, RandomAccessCollectio public let element: Element } - public private(set) var dense: ContiguousArray - public private(set) var sparse: [Index: Key] + @usableFromInline var dense: ContiguousArray + @usableFromInline var sparse: [Index: Key] public init() { sparse = [Index: Key]()