diff --git a/Sources/FirebladeECS/Component.swift b/Sources/FirebladeECS/Component.swift index b25d5d9..b707e36 100644 --- a/Sources/FirebladeECS/Component.swift +++ b/Sources/FirebladeECS/Component.swift @@ -5,7 +5,7 @@ // Created by Christian Treffs on 08.10.17. // -public protocol Component: AnyObject, TypeIdentifiable {} +public protocol Component: class, TypeIdentifiable {} public typealias ComponentIdentifier = ObjectIdentifier public extension Component { diff --git a/Sources/FirebladeECS/ManagedContiguousArray.swift b/Sources/FirebladeECS/ManagedContiguousArray.swift index 0befaa4..3344c62 100644 --- a/Sources/FirebladeECS/ManagedContiguousArray.swift +++ b/Sources/FirebladeECS/ManagedContiguousArray.swift @@ -5,7 +5,7 @@ // Created by Christian Treffs on 28.10.17. // -public protocol UniformStorage: AnyObject { +public protocol UniformStorage: class { associatedtype Element associatedtype Index diff --git a/Sources/FirebladeECS/Nexus.swift b/Sources/FirebladeECS/Nexus.swift index 79a49a5..758078f 100644 --- a/Sources/FirebladeECS/Nexus.swift +++ b/Sources/FirebladeECS/Nexus.swift @@ -21,7 +21,7 @@ public typealias EntityIdInFamilyIndex = Int public typealias TraitEntityIdHashSet = [TraitEntityIdHash: EntityIdInFamilyIndex] public typealias SparseComponentIdentifierSet = UnorderedSparseSet -public protocol NexusDelegate: AnyObject { +public protocol NexusDelegate: class { func nexusEventOccurred(_ event: ECSEvent) func nexusRecoverableErrorOccurred(_ message: String) } diff --git a/Sources/FirebladeECS/TypedFamily.swift b/Sources/FirebladeECS/TypedFamily.swift index 386b2f3..65cac5a 100644 --- a/Sources/FirebladeECS/TypedFamily.swift +++ b/Sources/FirebladeECS/TypedFamily.swift @@ -10,7 +10,7 @@ // * define read/write access // * set size and storage constraints -public protocol TypedFamilyProtocol: AnyObject, Equatable, Sequence { +public protocol TypedFamilyProtocol: class, Equatable, Sequence { associatedtype EntityComponentsSequence: EntityComponentsSequenceProtocol var traits: FamilyTraitSet { get }